D
Don
Please, I hope someone can help me; I'm obviously an idiot.
I have a form with a control that is an auto number. I'm trying-by clicking
a button-to open another form and insert the value of the control that is an
auto number, into a control on the other form. When I do this, I get the
Runtime Error 2448.
The control on the other form is formatted as a number (long integer) and
the control is in the form's header, which is invisible.
I've done this before on other databases that I've written. What am I
missing? I've included my code below:
Private Sub lstQUOTE_Click()
DoCmd.OpenForm "frmQUOTE_HEADER_A"
[Forms]![frmQUOTE_HEADER_A].SetFocus
[Forms]![frmQUOTE_HEADER_A]![QUOTE_ID] = Me.lstQUOTE
End Sub
By the way, I'm using Access 2007.
I have a form with a control that is an auto number. I'm trying-by clicking
a button-to open another form and insert the value of the control that is an
auto number, into a control on the other form. When I do this, I get the
Runtime Error 2448.
The control on the other form is formatted as a number (long integer) and
the control is in the form's header, which is invisible.
I've done this before on other databases that I've written. What am I
missing? I've included my code below:
Private Sub lstQUOTE_Click()
DoCmd.OpenForm "frmQUOTE_HEADER_A"
[Forms]![frmQUOTE_HEADER_A].SetFocus
[Forms]![frmQUOTE_HEADER_A]![QUOTE_ID] = Me.lstQUOTE
End Sub
By the way, I'm using Access 2007.