Excel - Access help (1 Viewer)

Tark221

Registered User.
Local time
Today, 11:24
Joined
Oct 12, 2012
Messages
74
Hi I'm populating my listbox from access but it doesnt like my SQL statement, where am I going wrong

sSQL = "SELECT * from Process where ParentName = '[cboCategory]'"

Process is a table and cboCategory is the excel form control.

The error is "No given value for one or more required peramaters.

Any help would be much appreciated.
 

pr2-eugin

Super Moderator
Local time
Today, 11:24
Joined
Nov 30, 2011
Messages
8,494
Try,
Code:
sSQL = "SELECT * from Process where ParentName  = '" & [cboCategory] & "'"
 

Tark221

Registered User.
Local time
Today, 11:24
Joined
Oct 12, 2012
Messages
74
Thank you, spot on!
 

Users who are viewing this thread

Top Bottom