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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create query

Status
Not open for further replies.

Doina

Technical User
Aug 3, 2001
33
CA
Hi all,

Is there a way to create a query in ms-access using a command like:

create myquery(custID, custName)
as
select custID, custName
from customers;

I need to update an existing ms-access database and I would rather create a VB program to execute this commnad along with other updates.

Thanks,
Doina

 
I think you've just spent twice as long coding as it would take to do it by hand !

If you are going through the queries and replacing an existing table name with another (New ) table name then that's a different matter. Use the QueryDef object and cycle through looking for the text string and replace it in all cases.


G LS
 
I want to know if you know how to create a calculated field with the expression TrueFalse. My program doesn't accept that kind of format, it only take the numeric on like true is -1 and false is 0. I really need your help ASAP.

Thanks a lot.
 
Hi,

You should post your question in a new thread since this is a different subject.

Doina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top