Bill Bisco
Custom User Title
- Local time
- Yesterday, 22:38
- Joined
- Mar 27, 2009
- Messages
- 92
Hi all,
Basically I'd like to run my Make-Table Query as soon as a Form is Opened; however, I have only found the following.
Is there any way to tell VBA just to run my query rather than having to copy my query's SQL code?
Thanks,
Bill
Basically I'd like to run my Make-Table Query as soon as a Form is Opened; however, I have only found the following.
Code:
Dim SQL As String
SQL = "UPDATE Employees " & _
"SET Employees.Title = 'Regional Sales Manager' " & _
"WHERE Employees.Title = 'Sales Manager'"
DoCmd.RunSQL SQL
Thanks,
Bill