Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 18th, 2004, 07:33 AM
Ryan_Baxter Ryan_Baxter is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Indianapolis, IN
Posts: 40 Ryan_Baxter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Exclamation Automation of Queries

I have a program that is going to be used for an ambulance company. I have with the help of this forum made really good process. I have now come up against a problem that I can't figure out. I have 2 queries that I need to run in the back round when the dispatcher pushes a button. On of the queries is an append query that makes a return record for an existing record and the other query is an update query that changes the properties that allow the append query to work back to false so that it doesn't keep making additional records. I know that this is probably not the best way of going this, however I pretty proud of it, just because I'm teaching myself access as I go. I really need these 2 queries to run together and on the click of the button, however the I can not figure out the macro or VBA needed to do that. I would really be happy if someone could give me an idea where to start.

Reply With Quote
  #2  
Old February 18th, 2004, 02:28 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
VBA

DoCmd.OpenQuery ("queryName"), acViewNormal


S-

Reply With Quote
  #3  
Old February 18th, 2004, 02:35 PM
Ryan_Baxter Ryan_Baxter is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Indianapolis, IN
Posts: 40 Ryan_Baxter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Quote:
Originally Posted by sbaxter
VBA

DoCmd.OpenQuery ("queryName"), acViewNormal


S-


So if I have 2 queries I can do the same thing but how do I nest them so that they run one right after the other?

Reply With Quote
  #4  
Old February 18th, 2004, 02:39 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
DoCmd.OpenQuery ("queryName1"), acViewNormal
DoCmd.OpenQuery ("queryName2"), acViewNormal

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Automation of Queries


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT