How do I write this SQL stat in VBA?

E

erick-flores

hello all can somebody tell me how to write this SQL code in VBA

SELECT Employees.EmployeeID, Employees.DepartmentName,
Employees.EmployeeNumber, Employees.FirstName, Employees.LastName,
Employees.[Auto Year], Employees.[Auto Condition], Employees.[Auto
Make], Employees.UsernameHold, Employees.[Location/Division],
Employees.UserGroupName
FROM Employees
WHERE (((Employees.UserGroupName)="Ind Prod Users"));

Also is there a way to execute a query already built in the
Me.RecordSource of the form. In other words dont write the entire SQL
statement just call the query.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top