what if

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

i was wondering what if i had a form and i wanted to see if a record exists
in 2nd or 3rd table would i use DLookUp or is there another way to do this?

thanks,
rodchar
 
hey all,

i was wondering what if i had a form and i wanted to see if a record exists
in 2nd or 3rd table would i use DLookUp or is there another way to do this?

thanks,
rodchar

Without knowing more, if you just want to see if a record exists,
without returning any value from the record, you could use:

= IIf(DCount("*","TableName","[SomeField] = someCtiteria")>0,"Yes
there is at least one","No it's not")

Look up
DCount as well as Where clause + restrict data to a subset of records
in VBA help to learn how to use this function.
 
hey all,

i was wondering what if i had a form and i wanted to see if a record exists
in 2nd or 3rd table would i use DLookUp or is there another way to do this?

thanks,
rodchar

Yes you could, and yes there is (you could use a Subform to see the
actual records).

John W. Vinson[MVP]
 
thank you. this helped.

John Vinson said:
Yes you could, and yes there is (you could use a Subform to see the
actual records).

John W. Vinson[MVP]
 

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

installing a 2nd video card 6
longest field value for each col in a generic collection 4
If record exists, edit it? 2
Conditional Formatting help 4
vba help 3
2nd video card 3
DLookup 2
2nd hard drive ques 2 4

Back
Top