Hello all,
I am trying to have a button ask for two values, and plug them both into the appropriate fields on the table. A msg box with both value boxes on it would be appropriate but so far I cant even get anything to show up.
So far I have the following, I am trying my best to get this to work but sadly, I am a noober... so any helpful hints would be helpful for me to learn!
Private Sub Command39_Click()
Value = InputBox("Enter a value for this job", "Value", Format(Me.Value, "Currency"))
If Len(Value) = 0 Then
iMsgResult = MsgBox("Can not accept Job without a value.", vbOKOnly, "Move failed")
GoTo success
End If
Job = InputBox("Enter the job number", "Job Number")
If Len(Job) = 0 Then
iMsgResult = MsgBox("You must enter a job number.", vbOKOnly, "Move failed")
GoTo success
End If
End Sub
Its coming up with errors all over the place. I know I have not defined success or failure, but I dont know what to do there. Any help?
I am trying to have a button ask for two values, and plug them both into the appropriate fields on the table. A msg box with both value boxes on it would be appropriate but so far I cant even get anything to show up.
So far I have the following, I am trying my best to get this to work but sadly, I am a noober... so any helpful hints would be helpful for me to learn!
Private Sub Command39_Click()
Value = InputBox("Enter a value for this job", "Value", Format(Me.Value, "Currency"))
If Len(Value) = 0 Then
iMsgResult = MsgBox("Can not accept Job without a value.", vbOKOnly, "Move failed")
GoTo success
End If
Job = InputBox("Enter the job number", "Job Number")
If Len(Job) = 0 Then
iMsgResult = MsgBox("You must enter a job number.", vbOKOnly, "Move failed")
GoTo success
End If
End Sub
Its coming up with errors all over the place. I know I have not defined success or failure, but I dont know what to do there. Any help?