please help on the form

  • Thread starter SJJ via AccessMonster.com
  • Start date
S

SJJ via AccessMonster.com

i have a form, with in the form i have three sub forms. each subfom contain
the fields given below

date: 03/02/2005
time :Evening

lots of them..

it can contain same date with different times but it cant contain same date
and same time twice. however i have a field called searchDate and searchTime
on that form. if i enter some date and time on those fields and click
"Search" button it should show whether the provided date and time already
exists on any of those subforms. may be a message says "the date and time
already booked out".

is it possible to do that in a form

thanks in advance.
 
G

Guest

Create a query that have the seach entry textboxes as criteria. Build a
macro with condition DCount("[ID]","Query1")>0 and action MsgBox.
Substitue your query for Query1 and an output field of your query fo ID in
the above condition.
Type you message in the pane at the bottom of the window.
 
S

SJJ via AccessMonster.com

sorry but i dont understand the solution. could u be able to explain in more
detail if possible please.

thank you
 

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

Form/Subform with Parameter 2
Employee time punch form 1
Help Please 20
Datediff on form and subform 6
Access Sub form opens before the main form in MS Access 0
Help 5
Go to a Specific Record on a Subform 3
Validation code rule 2

Top