Paul Cooke
11-10-2001, 12:52 AM
I have entered some code to enable a text box called "disposal" (which is set as disabled by default) if the preceding combo box is selected as "No" from a chice of Yes or No
i.e
Private Sub Conwork_AfterUpdate()
If Me!Conwork = "No" Then
Me!Disposal.Enabled = True
Else
Me!Disposal.Enabled = False
End If
End Sub
Once the "disposal" box is highligted I am able to enter text into it, but when I click on a command button to print the current report a window appears called Enter Parameter value "disposal11"
If I enter any text in this window and press OK it is printed on my report.
If I click OK without entering text in this window the report is printed but the "disposal" field on the report is blank regardless of any text that was entered on the form.
If I click cancel on the window it closes the window and i return to the form.
To say this is bugging me is an understatement so please help if you can!!
Thanks
i.e
Private Sub Conwork_AfterUpdate()
If Me!Conwork = "No" Then
Me!Disposal.Enabled = True
Else
Me!Disposal.Enabled = False
End If
End Sub
Once the "disposal" box is highligted I am able to enter text into it, but when I click on a command button to print the current report a window appears called Enter Parameter value "disposal11"
If I enter any text in this window and press OK it is printed on my report.
If I click OK without entering text in this window the report is printed but the "disposal" field on the report is blank regardless of any text that was entered on the form.
If I click cancel on the window it closes the window and i return to the form.
To say this is bugging me is an understatement so please help if you can!!
Thanks