N
nancy
I have a check in system for participants for of a nonprofit organization.
The participants need to check in each time they come in and shop. When
signing in they choose their name from a combo box and the click the sign-in
button that runs to below event procedure. This works great. However some
time someone else will sign-in for the participant under the participants
name. I would like to modify the below event procedure that asks the
following questions.
Are you Sam ( the selected person). Yes or No.
If Yes then sign in Sam.
IF no. Are you shopping for Sam?
IF Yes. Please type in your name. (I will call this the Altperson)
Once the Altperson types in their name. I want the altperon name be added
to Sam’s ( or the selected perons) sign-in information.
Private Sub cmdSignIn_Click()
If IsNull(cboName) Then
MsgBox "Please select your name from the drop down list. Favor de
seleccionar su nombre de la lista siguiente"
ElseIf DCount("ShopID", "Shoplog", "volID=" & cboName & " And
ShopDate=Date()") = 0 Then
DoCmd.RunSQL "Insert Into Shoplog (volID, ShopDate, SHOPSignin) Values("
& cboName & ",Date(),Time());"
MsgBox cboName.Column(1) & ", you have signed in successfully!"
cboName = Null
DoCmd.Close
Else
MsgBox cboName.Column(1) & ", you have already signed in today! Ya se
ha registrado por el dia de hoy."
End If
The participants need to check in each time they come in and shop. When
signing in they choose their name from a combo box and the click the sign-in
button that runs to below event procedure. This works great. However some
time someone else will sign-in for the participant under the participants
name. I would like to modify the below event procedure that asks the
following questions.
Are you Sam ( the selected person). Yes or No.
If Yes then sign in Sam.
IF no. Are you shopping for Sam?
IF Yes. Please type in your name. (I will call this the Altperson)
Once the Altperson types in their name. I want the altperon name be added
to Sam’s ( or the selected perons) sign-in information.
Private Sub cmdSignIn_Click()
If IsNull(cboName) Then
MsgBox "Please select your name from the drop down list. Favor de
seleccionar su nombre de la lista siguiente"
ElseIf DCount("ShopID", "Shoplog", "volID=" & cboName & " And
ShopDate=Date()") = 0 Then
DoCmd.RunSQL "Insert Into Shoplog (volID, ShopDate, SHOPSignin) Values("
& cboName & ",Date(),Time());"
MsgBox cboName.Column(1) & ", you have signed in successfully!"
cboName = Null
DoCmd.Close
Else
MsgBox cboName.Column(1) & ", you have already signed in today! Ya se
ha registrado por el dia de hoy."
End If