how to query on the current form

kitaeshi

Registered User.
Local time
Today, 16:01
Joined
Jun 9, 2007
Messages
30
hi all, i create a form which have a button to append the current entry to another table but i only want to append the current entry tat is open. So how do u set the query to append one entry(the current open entry on the form) using the criteria.

i notice the query only have sum, aver, +- ...etc..

tks.
 
Hello kitaeshi!

Look at "DemoApQA2002.mdb" (attachment)
Adapt it as you need.
 

Attachments

yeah tats wat i want!!!! but is it possible to add a delete after appending to the query?
 
yes, it is possible. Make a delete query,
add a button on the form and put VBA.
 
Hi Msef, i saw this codes inside the vba, wat does this one do?

Private Sub Form_AfterInsert()

DoCmd.SetWarnings False
DoCmd.OpenQuery "append"
DoCmd.SetWarnings True

End Sub
 
This code run a query which name is "append".
 
y do we need to run a query when we already state it to run on the button when click?
 
When you click on the button, the query will run.
 

Users who are viewing this thread

Back
Top Bottom