Multiple WHERE arguments.
I have seen multiple WHERE values used but I am having problems getting VBA to accept my attempts. Does Acess/VBA support this option? My code looks like this:
strSQL = "SELECT * FROM [Recruitment Event History] WHERE Recruitment_Location_ID = " & intLocation...
strLocation = qdfstrTemp!Recruitment_Location_Name
Did not work but I may have some other coding to do for it.
strLocation = DLookup("[Recruitment_Location_Name]","[Recruitment Locations]","[Recruitment_Location_ID] = " & intLocation)
worked as is....
Thanks
I need to assign a value from a temp query field into a string variable to be used in the sub. Any ideas? Here’s the jist of my code:
Set dbsDatabase = CodeDb
strSQL = "SELECT Recruitment_Location_Name FROM [Recruitment Locations] WHERE [Recruitment_Location_ID] = intLocation"
Set...
Environment: I am working in Access 2002. In the main switchboard I am coding a subroutine for one of the buttons. Among other things, this button activates another form to get user information before proceeding.
Problem: Can I code a listener in a subroutine to begin once the OK button on the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.