|
-
Sep 21st, 2000, 05:30 AM
#1
Thread Starter
Lively Member
How can I change query definition in Access database from VB. I need this for upgrading current database tu new version.
I have to add one more field from table that is already define in this query.
example:
Current
select tab1.field1, tab2.field2 from tab1, tab2 where ....
changed to
select tab1.field1, tab1.field2, tab2.field2 from tab1, tab2 where ....
Thanx!
Ermin Gutenberger
VB.NET 2010
-
Sep 21st, 2000, 07:46 AM
#2
Fanatic Member
ermingut
have a look at Querydefs if you are using DAO or the equivilant if you are using ADO.
This will enable you to delete the existing one and create a new one with the same name but with the criteria you specify.
Hope this is of use
Gary Lowe 
VB6 (Enterprise) SP5
ADO 2.6
SQL Server 7 SP3
OK I know my spelling and grammer is crap so don't quote me on it!
To err is human to take the P! is only natural !!
Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip

-
Sep 21st, 2000, 08:09 AM
#3
Thread Starter
Lively Member
Thank you!
You solved problem for me!
Ermin Gutenberger
VB.NET 2010
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|