Getting data from forms

B

BrianC

I have a form called SINGLE BOOKING AVAILABILITY with
three input field called Date, Combo8 and Combo10 and a
command button.

I want to put the values from these fields into a SQL
statement attached to the command button, i.e.

SELECT AVAILABILITY.DATE, AVAILABILITY.PERIOD,
AVAILABILITY.ROOM, AVAILABILITY.BOOKING ID
FROM AVAILABILITY
WHERE (((AVAILABILITY.DATE)=date from form) AND
(AVAILABILITY.PERIOD)=combo8 from form) AND
(AVAILABILITY.ROOM)=combo10 from form));

How do I do this? How do I get the data out of the form
and into my query?

Thanks in advance.
 
G

Guest

See Microsoft Knowledge Base Article # 209261. The title
is deceiving. Read the summary - I think it's what you
want.
 

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

Similar Threads

syntax error? Help 2
Getting data from form into a SQL statement 4
Running a query using data from a form 1
Process records from a query 1
Help me ! 4
Syntax error 1
DoCmd.RunSQL error Help 5
Put message to form 1

Top