473,802 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Make Table query - Field Properties

Is it possible to force a Decimal type field from an ODBC source to
become a Double type field in the destination table when using a Make
Table query ?

Thanks in advance.

Laetitia
South Africa
*** Sent via Developersdex http://www.developersdex.com ***
Mar 16 '06 #1
6 5385
Not possible IMO.
AFAIK field props are inherited.
I would create the table first and use an appendquery

Arno R

"Laetitia Clark" <no******@yahoo .com> schreef in bericht news:0p******** *****@news.uswe st.net...
Is it possible to force a Decimal type field from an ODBC source to
become a Double type field in the destination table when using a Make
Table query ?

Thanks in advance.

Laetitia
South Africa


*** Sent via Developersdex http://www.developersdex.com ***

Mar 16 '06 #2

"Laetitia Clark" <no******@yahoo .com> wrote in message
news:0p******** *****@news.uswe st.net...
Is it possible to force a Decimal type field from an ODBC source to
become a Double type field in the destination table when using a Make
Table query ?

Thanks in advance.

Laetitia
South Africa

You could do:

SELECT CDbl(Nz([MyOdbcField],0)) As MyNewField
INTO TargetTable FROM SourceTable

but a make table query does not do a full job of creating the table with all
the indexes and extended properties. Better to create the table properly
and append the data into it.
Mar 16 '06 #3
Thank you so much for the quick response.
I was hoping to avoid having to run a "Delete" query first to remove the
old data, then an Append query to add the current records.

I will try the suggested Select statement. Holding thumbs it will work
as it would save a ton of work "fixing" someone else's database.

Laetitia
South Africa
*** Sent via Developersdex http://www.developersdex.com ***
Mar 16 '06 #4
Anthony, the CDbl function works like a dream.
Thanks again. This is a very simple yet elegant solution.

Laetitia
South Africa
*** Sent via Developersdex http://www.developersdex.com ***
Mar 16 '06 #5
"Laetitia Clark" <no******@yahoo .com> wrote in message
news:HF******** ******@news.usw est.net...
Anthony, the CDbl function works like a dream.
Thanks again. This is a very simple yet elegant solution.

Laetitia
South Africa

Thank you for the feedback.
The number of people who never even bother to reply can get a bit tedious.
One often never even knows if one's suggestion has been looked at, let alone
tried or tested.
It is your sort of feedback that keeps us posters posting!
Mar 16 '06 #6

"Laetitia Clark" <no******@yahoo .com> schreef in bericht news:zs******** *****@news.uswe st.net...
Thank you so much for the quick response.
Anthony gave you a good solution. I did not think of that possibility.
Might become handy sometimes, but I still prefer mostly to create the tables first.
I was hoping to avoid having to run a "Delete" query first to remove the
old data, then an Append query to add the current records.


But what is difficult with code like:
set db =Currentdb
db.Execute ("delete * From TableXXXX"), dbFailOnError
What you need next is a bit of code or a query to append the records.

Arno R
Mar 16 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
20361
by: Vladimir | last post by:
Hello, I have a table in MS Access database. It has one field (with BYTE datatype) that has several properties set in Lookup tab of table Design View. Display Control = Combo Box. Row Source Type = Value List. Row Source = "1; "Above"; 2; "Below"; 3; "Equal"". When I try to SELECT <field> FROM <table> in my C++ application through ADO, I get numeric value of the field. How can I get string representation of this numeric value from the...
4
3581
by: Steve | last post by:
I have a products table where the PK is ProductID. Also have the standard Orders table and OrderDetails table. I created a query that joins the Orders table and OrderDetails table. The query includes the OrderDate field from the Orders table and the ProductID field from the OrderDetails table. I added a criteria to the OrderDate field to limit the orders to the past year. Then I converted the query to a totals query to get the total sold of...
2
8615
by: Kathy Krizl | last post by:
I'm probably doing something stupid, but I have a make table query. One of the tables I reference has some check box fields in it. Their Data Type is Yes/No, their field property format is Yes/No, they have no default value, and their Display Control is Check Box. When I run my make table query, the new fields have a Yes/No Data Type, but the field property format comes up blank, and the Display Control comes up as Text Box. How come...
3
2756
by: Hanif Merali | last post by:
Hello, I'm having some difficulties creating a make table query. The source table which I'm basing the make table query has the fields: CIF BusLine1-2001 BusLine1-2002 BusLine1-2003 BusLine1-2004
7
5092
by: rednexgfx_k | last post by:
All, Problem Summary: I've running about 30 make table queries via VBA in Access 2000, and my database goes from 14,000k to over 2,000,000k. In addition, the longer the procedure runs, the bigger the performance hit VBA takes. I'm wondering how to prevent or reduce this. Details: I have a database table of queries I want to run. This table contains the query name, the SQL text of the query, the name of the target table, and whether...
2
5224
by: Jason | last post by:
I am trying to create a simple database, but it's proving too complex for me!!! I have only just started a new database and am trying to have two fields in a table: the first holding the first name of a person (FirstName) and the second to be the first charactrer of that name. i am using the default value property for the second field of "=Left(,1)", but i am getting error messages when tryign to save it.
2
7992
by: Greg Strong | last post by:
Hello All, Is it possible to change table field lookup properties in code? I've been able to change other field properties in code, however so far no luck with field lookup properties. What I've done for test purposes is use a text input file for the table field lookup properties. I thought that I'd start first by just changing the 'Display Control' property. Thanks to Allen Browne for some ideals per...
1
1886
by: sshafer1 | last post by:
I have a form that is using query as the backend 'table'. I did this so that I could display query fields in my form that have been calculated. 1. How do I write those query field values to a table? 2. Is it possible to calculate what I am doing in the actual table field properties instead of trying to do it in a query and then write it to a table? 3. Is it possible to bound the calculation to a field in my table? Thanks for your...
1
1700
by: Simon | last post by:
Dear reader, In a Make-Table query the TickBox from the master table transfers in to a binary value in the new table. How can I force the Make-table query to keep the TickBox in the new table as it is in the master table a CheckBox.
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10305
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.