Hi,
I've created in VBA a USerform named (form1) in which I've one textbox1 and one clickbutton.
After complete textbox1 and push clickbutton I would like to run this query based on fact that the variable in textbox1 is passed to SQL string , currently it doesn't work.
RS.Open "SELECT * FROM [VENDOR DATA] WHERE [Buyer]=Forms!Form1!textbox1.value"
Please take note that form I've create is not the automatic form in Access available but I've created in VBA development area.
Do you have suggestion ?
I've created in VBA a USerform named (form1) in which I've one textbox1 and one clickbutton.
After complete textbox1 and push clickbutton I would like to run this query based on fact that the variable in textbox1 is passed to SQL string , currently it doesn't work.
RS.Open "SELECT * FROM [VENDOR DATA] WHERE [Buyer]=Forms!Form1!textbox1.value"
Please take note that form I've create is not the automatic form in Access available but I've created in VBA development area.
Do you have suggestion ?