Problem with OpenArgs

  • Thread starter Thread starter Damon Heron
  • Start date Start date
D

Damon Heron

I use OpenArgs to add a date to a form from another (WorkOrder)form and all
works well. However, I want to disable this when I open the form from a
second (menu)form. Here is my form load event that won't show the existing
date from the underlying table...

Private Sub Form_Load()
If IsNull(Me.OpenArgs) Then
'called from menu
Me!txtBottledDate.ControlSource = "BottledDate"
Else
'called from WorkOrder - shows the date I passed
Me!txtBottledDate = Me.OpenArgs
End If

End Sub

In the first instance, how do I get it to show the table's date? (it shows
a blank txtbox)

Thanks for any assistence.
 
Duh, I thought I was sure. In fact, I typed in the date in the table. Then
went back and checked it again, and it was blank! All is working fine now.
Thanks.
--
Damon Heron

Douglas J Steele said:
You sure BottledDate is populated in the recordsource for the form?
 
Back
Top