Hi,
I have the following:
#
CurrentDb.Execute _
"INSERT INTO [Members] (" & _
"[Family Name], " & _
"[First Name], " & _
"[Date of birth], " & _
"[Gender]" & _
"[MobilePhone]" & _
"[eMail]" & _
"[Comments]" & _
") VALUES (" & _
"'" & Me.FamilyNameTxt & "', " & _
"'" & Me.FirstNameTxt & "', " & _
"#" & Me.DoBTxt & "#, " & _
"'" & MaleOrFemale & "'" & _
"'" & Me.PhoneTxt & "'" & _
"'" & Me.EmailTxt & "'" & _
"'" & Me.CommentsTxt & "'" & _
")"
#
On my form the Gender Option Group is Frame27
the Option Buttons are Option30 (Female) Option Value: -1
Option32 (Male) Option Value: 0
Don't know how to get the value (MaleOrFemale) from the option group.
Any help appreciated.
Thanks
David