hey... i have a form with a cmd button that opens a 2nd form with acdialog as
the windowmode. upon opening, if certain fields are filled, i would like to
pull those values into some of the controls of the new form. here's the code
i have in the open even of the 2nd form:
If CurrentProject.AllForms("form1").IsLoaded = True Then
If IsNull(Forms!form1.Controls!txtboxdate) = False Then
Me.txtboxdate = Forms![form1].[txtboxdate]
End If
If IsNull(Forms!form1.Controls!txtboxbuyersfirstname) = False Then
Me.txtboxname = Forms![form1].[txtboxbuyersfirstname] & " " &
Forms![form1].[txtboxbuyerslastname]
End If
Me.cboxact.SetFocus
Else
Me.txtboxdate.SetFocus
End If
unfortunately, i'm being told by access that i can't set a value to this
object and the debugger is opened with this highlighted:
Me.txtboxdate = Forms![form1].[txtboxdate]
any clues? thanks.
--
Greg
Message posted via http://www.accessmonster.com