Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make table query with a union and linked table to update another table

Status
Not open for further replies.

bryn30

Technical User
Mar 5, 2001
57
US
Goal - Pull data from Production DB and populate fields in an Operations DB.

First determine Orders to pull. so I created a Union Query to get a list of Orders.
Pull Data From Production. built a query using the Union query to pull three fields, Date1, Date2, Text1

I need to send this information to the operation DB but change the data type of the Text1 field to Integer.

Can anyone help me with the code to do this? what is the best way to accomplish this?
 
As long as you have all your queries together you can use the built in cint function to convert your text field to integer...

select
CInt(Text1)
from
......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top