Hi,
I created a combo box and typed the following under record row source:
[SELECT tblsites].[* FROM tblsites ORDER BY [tblsites]].[[sitesdescr]
But it will not work, when I tried to use the wizard to create a combo box that will select the record based on the drop down value it stated there was a syntax error. The code above is what it thinks is an error.
Note I do have a subform on the form so I am not sure if that will make a difference.
sitesID is the primary key on the table by the way. And sitesdescr is just the description of the site.
I created a combo box and typed the following under record row source:
[SELECT tblsites].[* FROM tblsites ORDER BY [tblsites]].[[sitesdescr]
But it will not work, when I tried to use the wizard to create a combo box that will select the record based on the drop down value it stated there was a syntax error. The code above is what it thinks is an error.
Note I do have a subform on the form so I am not sure if that will make a difference.
sitesID is the primary key on the table by the way. And sitesdescr is just the description of the site.