R
Ron
I have this code that inserts whatever is in txtGrade into an
enrollment table.
DoCmd.SetWarnings False
would I just insert code that said:
if txtgrade "" then
msgbox "Enter all grades"
else
DoCmd.OpenQuery "querytoinsertgrade"
What if I wanted to make sure the grades were either A, B, C, D, or F
and nothing else, so if something other than those was entered in
txtgrade I would get a textbox that said that all grades are not right
and to redo them??
how would I do something like this?
enrollment table.
DoCmd.SetWarnings False
would I just insert code that said:
if txtgrade "" then
msgbox "Enter all grades"
else
DoCmd.OpenQuery "querytoinsertgrade"
What if I wanted to make sure the grades were either A, B, C, D, or F
and nothing else, so if something other than those was entered in
txtgrade I would get a textbox that said that all grades are not right
and to redo them??
how would I do something like this?