A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calling append query from form



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2004, 09:56 PM
CS
external usenet poster
 
Posts: n/a
Default Calling append query from form

I sure hope someone can help me. I've been struggling all
day now. There's some data that occassionaly needs to be
copied from one record to another and the manual method is
not working so I thought running an append query from a
form and only adding data based on the current records in
my form might help. I have text boxes: OldProduct and
NewProduct they would be criteria inputs to the matching
fields in the table the append query is updating. The
query would be activated by a command button(SaveRecord)
on the form unless there's a better way to do this. I'm
fairly new to Access 2K and don't know much VBA so I'm
stuck. If someone can help me accomplish this I really
appreciate it.
  #2  
Old July 1st, 2004, 07:24 PM
NoSpamTakeSquareRootOfNumber
external usenet poster
 
Posts: n/a
Default Calling append query from form

CS wrote:
I sure hope someone can help me. I've been struggling all
day now. There's some data that occassionaly needs to be
copied from one record to another and the manual method is
not working so I thought running an append query from a
form and only adding data based on the current records in
my form might help. I have text boxes: OldProduct and
NewProduct they would be criteria inputs to the matching
fields in the table the append query is updating. The
query would be activated by a command button(SaveRecord)
on the form unless there's a better way to do this. I'm
fairly new to Access 2K and don't know much VBA so I'm
stuck. If someone can help me accomplish this I really
appreciate it.



Create your button, view the properties for it, and on the "Click" event
(under the events tab), click the three dots and choose "Code Builder".
In the code section that comes up, type in:

doCmd OpenQuery "yourQueryHere"

(you will need the quote marks around the name of your query.)

That's all there is to it, unless you need it to get fancy.

Nathan
 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.