![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I need to make a NEW query with help VB code in Access. In the VB is not something like createquery, addquery or newquery. Thanks for your answers. Paja |
#3
| |||
| |||
|
|
I'm going to assume that you are asking for vba code to build and execute a query in an access code module. If that's not what you need then please rephrase your question. strSQL = "Select * FROM tblMyTable WHERE UserID = jobrienct;" CurrentDb.Execute strSQL regards, John jobrien AT acscience DOT com paulaza (AT) quick (DOT) cz (Paja) wrote in message news:<d643de58.0311210624.2af21c1 (AT) posting (DOT) google.com>... Hi, I need to make a NEW query with help VB code in Access. In the VB is not something like createquery, addquery or newquery. Thanks for your answers. Paja |
#4
| |||
| |||
|
|
Thanks, but "Cannot execute a select query." :-( I do not wont to make a few new tables. In my db is a form, where are a few checkboxes and listboxes. The user will choose his choice. That is all. I need only create new query by users choice. Sorry, my bad english :-) Paja jobrienct (AT) excite (DOT) com (John) wrote in message news:<c4916e0f.0311211752.98b02e8 (AT) posting (DOT) google.com>... I'm going to assume that you are asking for vba code to build and execute a query in an access code module. If that's not what you need then please rephrase your question. strSQL = "Select * FROM tblMyTable WHERE UserID = jobrienct;" CurrentDb.Execute strSQL regards, John jobrien AT acscience DOT com paulaza (AT) quick (DOT) cz (Paja) wrote in message news:<d643de58.0311210624.2af21c1 (AT) posting (DOT) google.com>... Hi, I need to make a NEW query with help VB code in Access. In the VB is not something like createquery, addquery or newquery. Thanks for your answers. Paja |
#5
| |||
| |||
|
|
Hi, I need to make a NEW query with help VB code in Access. In the VB is not something like createquery, addquery or newquery. Thanks for your answers. Paja |
![]() |
| Thread Tools | |
| Display Modes | |
| |