New Record Question

Phil_L

Registered User.
Local time
Today, 09:38
Joined
Nov 14, 2003
Messages
22
In a tabulated form that i have created, i'd like to only add another record only when a yes/no field in the last record is set to true

Is there anyway of doing this?

Any help is apreciated

Cheers,

Phil
 
try something like this:

Code:
If Me.FieldName = True Then
Me.AllowAdditions = True
Else
Me.AllowAdditions = False
End If

Replace FieldName with the name of your yes/no field.
 
which event should i put this code under?
 
if initially you're setting the allowadditions to false, you can use the afterupdate event of your yes/no field.
 
If I initially set allowadditions to false then there is no initial record on the form, therefore no tick box to tick. If I initially set allowadditions to true then as soon as i enter information in the record a new record appears. I dont want this to appear until i tick the box at the end.
 

Users who are viewing this thread

Back
Top Bottom