query parameter value

R

realspido

Hello again,
On my form I want to make a button with assigned to it macro which will run
append-query. The query contains a parameter which value I want to be taken
from one of fields on the form (let's say called DateX).
Can anybody help me with it? I know it's simple, just can't find suit.
command in help file.

?????? = Me.DateX
DoCmd.OpenQuery "qryDLRnew"
 
K

Ken Snell \(MVP\)

Does the query contain the parameter that looks for the form's control's
value? That parameter should look something like this:

Forms!FormName!ControlName
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top