S
skynugget
Hello all, im a little stumped with some VBA sytax.
to start off, i have a field that is loaded with 3 text boxes
2 of the text boxes are populated on the form load with data i want to
use
txtFormName (ex. frmTest)
txtFieldName (ex. txtTest)
the 3rd text box is a value that i want to send to a field based on
the first 2 text boxes.
txtValue ex. test
im trying to do it with this click statment
Private Sub Command11_Click()
Forms!Me.txtForm.Me.txtField.Value = Me.txtValue
Forms!Me.txtForm.Refresh
End Sub
when i click my button, i get an error that it cant find the form "
Me.txtForm ". So i guess the value isn't getting passed
its executing
Forms!Me.txtForm.Me.txtField.Value = test
but it should be trying to execute
Forms!frmTest.txtTest.Value = test
in this example if i could get it to work.
thanks so much!
to start off, i have a field that is loaded with 3 text boxes
2 of the text boxes are populated on the form load with data i want to
use
txtFormName (ex. frmTest)
txtFieldName (ex. txtTest)
the 3rd text box is a value that i want to send to a field based on
the first 2 text boxes.
txtValue ex. test
im trying to do it with this click statment
Private Sub Command11_Click()
Forms!Me.txtForm.Me.txtField.Value = Me.txtValue
Forms!Me.txtForm.Refresh
End Sub
when i click my button, i get an error that it cant find the form "
Me.txtForm ". So i guess the value isn't getting passed
its executing
Forms!Me.txtForm.Me.txtField.Value = test
but it should be trying to execute
Forms!frmTest.txtTest.Value = test
in this example if i could get it to work.
thanks so much!