G
Guest
Hello,
Please help! I am trying to do something that I thought was very simple but
quickly found out that it is not so simple.
My report's RecordSource is based on a table but there are many textboxes on
the report that are Unbound. On the OnOpen procedure, I want the user to
input data using inputboxes and then assign the value of the inputbox to a
text box. I get an error message that says "You can't assign a value to this
object."
I have tried putting the "Dim MyValue as String" in the General Declarations
but I still get the same error message. Here is my code.
Option Compare Database
Dim MyValue As String
Private Sub Report_Open(Cancel As Integer)
MyValue = InputBox("Enter Date Initiated (DD/MMM/YYYY)", "Date
Initiated", , 1100, 1100)
Me.txt_Date_Initiated = MyValue
End Sub
Please help! I am trying to do something that I thought was very simple but
quickly found out that it is not so simple.
My report's RecordSource is based on a table but there are many textboxes on
the report that are Unbound. On the OnOpen procedure, I want the user to
input data using inputboxes and then assign the value of the inputbox to a
text box. I get an error message that says "You can't assign a value to this
object."
I have tried putting the "Dim MyValue as String" in the General Declarations
but I still get the same error message. Here is my code.
Option Compare Database
Dim MyValue As String
Private Sub Report_Open(Cancel As Integer)
MyValue = InputBox("Enter Date Initiated (DD/MMM/YYYY)", "Date
Initiated", , 1100, 1100)
Me.txt_Date_Initiated = MyValue
End Sub