Having a problem getting a code to be accepted in the code builder section. Here is the code that was built in the query builder but will not be accepted in the code builder.
CODE: SELECT IndividualxGroupT.AddressID, IndividualxGroupT.GroupID, IIf([LastName],[FirstName] & " " & [LastName],[CompanyName]) AS Contact FROM AddressDirectoryT INNER JOIN IndividualxGroupT ON AddressDirectoryT.AddressID = IndividualxGroupT.AddressID ORDER BY IIf([LastName],[FirstName] & " " & [LastName],[CompanyName]); END OF CODE
As written it works if I change the group number in the query but I want to run it through a combo box to select the group, however I keep getting an error message that it is expecting the end of Sub and the code is highlighted in red.
Any Ideas where I should look to resolve this problem? Jim O
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access SQL Seminar Part 2.