Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query database in excel vba code with user input?

Status
Not open for further replies.

xq

Programmer
Jun 26, 2002
106
NL
i am writting sql in text file then read it as string , pass it to query database in sql server, but i need user input date to query, is there another way instead of reading sql as string(cos i'm not able to place the user input date in the middle of sql string), is it possible to set a variable, assign user input date value to that variable, then i put that variable in the sql, then query it? something like transact sql? any help is appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top