new or existing record

P

Patrick Stubbin

IF the pointer is on a record (field) that is part of a newrecord (ie adding
a new record) rather than on an existing record, how can I test for this, so
that double clicking the field if the record already exists will not work,
but only work within the field if the I am adding a new record at the time.
hope that makes sense
 
D

Dirk Goldgar

Patrick Stubbin said:
IF the pointer is on a record (field) that is part of a newrecord (ie
adding a new record) rather than on an existing record, how can I
test for this, so that double clicking the field if the record
already exists will not work, but only work within the field if the I
am adding a new record at the time. hope that makes sense

If this is on a form, the form's NewRecord property is true if you are
on a new record that has not yet been saved. Once you save the record,
though, it's not "new" any more.
 
Top