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

basic Use Update problem

Status
Not open for further replies.

sup919

Programmer
Jan 10, 2002
31
TH
hi there i have simple question to ask
basically how do i use the update table in the access
I do the command

Dim sqls As String

sqls = "UPDATE checkEquipment SET AmountofUse = AmountofUse - " & Me![amounts] _
& " Where Machine_code Like '*" & Me![deletemach] & "*'"


DoCmd.RunSQL sqls
and it take a long time to update the data so i m thinking of using the update in the access. The problem is that i do not know the command to run the update in access
please help
 
I believe you're asking how to run an Access Update query. The syntax is:
DoCmd.SetWarnings False
Set db = CurrentDb()
db.QueryDefs(&quot;<query name>&quot;).Execute
Set db = Nothing
DoCmd.SetWarnings True
The SetWarnings stuff temporarily turns off the confirmation prompts that would normally occur for the Update query. Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top