That is simular to what I am currently doing, but that only puts the
frmMeeting.field1 and frmMeeting.field2 up on the form (frmTravel). It does
not check to see if it is already within the table (tblTravel). If they
match then update otherwise (else) add new record.
Unless I am missing something.
> Try something like the following from the button on frmMeeting:
>
[quoted text clipped - 11 lines]
> >all the fields in that record. Else I want frmTravel to add a new record.
> >Pease Help and Thank you.
kingston - 22 Mar 2007 19:40 GMT
Is frmTravel not directly bound to tblTravel? If it is, the OpenForm command
will open the form and find record(s) that match the criteria (it doesn't put
the field values into frmTravel). If there is no match, it will open to a
new record. If you need to check for the existence of a record in tblTravel,
one way to do it is to use the DCount() function:
If DCount("*","tblTravel","Field1='"& Value1 & "' AND Field2='" & Value2 &
"'")= 0 Then...
>That is simular to what I am currently doing, but that only puts the
>frmMeeting.field1 and frmMeeting.field2 up on the form (frmTravel). It does
[quoted text clipped - 7 lines]
>> >all the fields in that record. Else I want frmTravel to add a new record.
>> >Pease Help and Thank you.