Option Group ListBox Row Source "Expected end of statement"

Joined
Sep 20, 2012
Messages
2
Reaction score
0
I am trying to set a ListBox rowsouce via Option Group
I want to populate the first column (myLinked) with an X is tblPCMaterID is BLANK or NULL

The following works fine in the the control's Row source but I get a compile error expected end of statement at X


Code:
SELECT tblPC.tblPCID, IIf(nz([tblPCMasterID]),"[COLOR=Red]X[/COLOR]","") AS myLinked, tblPC.tblPCCustomerName FROM tblPC ORDER BY tblPC.tblPCCustomerName;
Am I missing something simple?
 

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