G
Günter Brandstätter
Hi,
I would use the allowAdditions property as follows:
in the form.open event
me.subform_name.Form.AllowAdditions=False
in the onKeyPress event of the form:
if key=vbkeyXX then 'whatever key you want'
me.subform_Name.Form.AllowAdditions = True
and in the forms onCurrent event:
if not me.newrecord then me.subform_name.Forms.AllowAdditions = False
this will prevent the blank line for the new record appearing
hth
Günter
I would use the allowAdditions property as follows:
in the form.open event
me.subform_name.Form.AllowAdditions=False
in the onKeyPress event of the form:
if key=vbkeyXX then 'whatever key you want'
me.subform_Name.Form.AllowAdditions = True
and in the forms onCurrent event:
if not me.newrecord then me.subform_name.Forms.AllowAdditions = False
this will prevent the blank line for the new record appearing
hth
Günter