dbclick checking

S

Souris

I have a double click event on the datasheet form.

It is fired all the time. I would like to triglle the event only there is
data on it.
Are there any property to check for record exists before execute the code?

your help is great appreciated,
 
B

Bob Cutler

Use the NewRecord property to check if the doubleclick was on the blank row
at the bottom. Use ISNULL() to check if a specific field is empty.
 
K

Klatuu

You can't stop the event from firing, but you can cause it not to do anything
if the object you double click on is null:

If Not IsNull(Me.SomeControl) Then
'do things
End If
 

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

Top