Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If, Then - Related tables

Status
Not open for further replies.

rgeinosky1

Technical User
May 13, 2005
2
US
I am having a brain block. The first If, Then statement works. It uses one table. The second one is using two tables. Do I enclose them in [ ]. I've tried that but must be doing something wrong. Help please
-----------------------------------------------------------
If Not IsNull([Date Closed]) = True And IsNull([Status]) = True Then
MsgBox "You failed to enter the Finding into the Master File"
End If
-----------------------------------------------------------
tblMaster tblPersons
If Not IsNull([Date Closed]) = True And IsNull([Status]) = True Then
MsgBox "You failed to enter the Finding into the Master File"
End If
-----------------------------------------------------------
Thanks
Bob
 
No one of your statement should use table, but Control.
Can you please elaborate on what your issue consists ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
try to have these table fields on the form with the same (this is table field) name and probably hide it from user and color it red to see clearly in design that it's hidden.

So Your code should/could possible work then.

hope it helped ;)
 
Would it not be easier to set up two record sets? then reference them that way?
Dim Db as CurrentDatabase
Dim rsMaster as Dao.Recordset
Dim rsPersons as Dao.Recordset

<open Tables>

<Locate Records>

<Your Code with rs References.)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top