View Full Version : V. Simple Query, not working


pauljkeenan
06-26-2006, 12:44 AM
Hi Lads

Hi guys, I want to return all the records which contain information under a particular column heading, hence the statement thats supposed to return all tables where Sector colum is not empty. I am new to SQL and Access so not sure why this simple query isn't working. It is a subform and displays the results in the "details" section of the form below the controls.

I think it could be something to do with the fact that its a subform, but Im not sure about this.

Me.RecordSource = "SELECT * FROM [tblRecordInfo] WHERE Sector <> "" "

any ideas guys? any assistance is greatly appreciated

thanks in advance

allan57
06-26-2006, 03:21 AM
Me.RecordSource = ("SELECT * FROM [tblRecordInfo] WHERE Sector <>'';")

Note: the '' is a double apostrophe

pauljkeenan
06-26-2006, 03:29 AM
thanks a million Alan, it works fine now.