I may be asking silly question as I am very new in ms access and VBA and stuck with this,
I am having a SQL string in my Access VBA as below example
select customer_id from customer_table where customer_name in ('Max','Jack')
I want user to add/replace the customer_name in the query using a ms access Unbound text box name as txtCusName. I tried to modify the SQL string as below but getting compilation error, advice me where I am doing the mistake?
select customer_id from customer_table where customer_name in ( & Me.txtCusName & )
Again, this is just example and I have bigger query for my project and which is working if I hardcoded the values but wondering how I can get from access form.