Re: Comparing data in two different tables
- From: "kingston via AccessMonster.com" <u27511@uwe>
- Date: Tue, 14 Nov 2006 17:51:26 GMT
That was supposed to be:
If DCount("[CasFileID]","[IDS]","[CasFileID]=" & Me.FileID.Text) > 0 Then
MsgBox "Hey, you bonehead, no duplicates allowed!"
End If
kingston wrote:
You can use a calculation to see if there are any matching records:
If DCount("[CasFileID]","[IDS]","[CasFileID]=" & Me.FileID.Text) Then
MsgBox "Hey, you bonehead, no duplicates allowed!"
End If
This assumes that the parameter is a number. Otherwise, you'll have to
enclose the input in single quotes.
My objective is to compare two fields that are located in different tables[quoted text clipped - 3 lines]
which are in same database. In a table called ,"TEST", I have a field called
inform them of their duplication. I would like to build the event in the
Before Update Procedure. How can I acheive this by using VBA?
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200611/1
.
- Follow-Ups:
- OT (was: Comparing data in two different tables)
- From: Douglas J. Steele
- OT (was: Comparing data in two different tables)
- References:
- Re: Comparing data in two different tables
- From: kingston via AccessMonster.com
- Re: Comparing data in two different tables
- Prev by Date: Re: How to regain focus to access application?
- Next by Date: RE: Search facility query
- Previous by thread: Re: Comparing data in two different tables
- Next by thread: OT (was: Comparing data in two different tables)
- Index(es):
Relevant Pages
|