D
dbl
I have posted this before so please except my apologies for that, I though
we had sorted the problem by using a combo box, but it didn't take long
before we found it wasn't the complete answer.
It hasn't completely sorted the problem because the text is imported to the
db by monthly (updates) they are not always in the right format i.e. the
wording
is not always the same or could be misspelt. (We have no control over this
element of data input) How do I stop code running if the words are
different from that required i.e. Private Car or Commercial Veh/Van. The
combo stops us from changing the text to any other than that required, but
the code still runs if the word "Car" was imported. How do I stop the code
running with a message telling the operator that they must select the
correct type from the combo box?
If (Me.Insurer) = "AAC" Or (Me.CarCommercial) = "Private Car" Or
(Me.CarCommercial) = "Commercial Veh/Van" Then
GoTo SkipMe
Else
If (Me.CarCommercial) = !!! Help needed here !!! Any text other than above
or null !!!! Then
MsgBox "You Cannot Proceed Without Entering Private Car or Commercial
Veh/Van"
Me.InvoiceVatTo = "Error Insufficient Data You Must Not Proceed"
Exit Sub
SkipMe:
Thanks Bob
we had sorted the problem by using a combo box, but it didn't take long
before we found it wasn't the complete answer.
It hasn't completely sorted the problem because the text is imported to the
db by monthly (updates) they are not always in the right format i.e. the
wording
is not always the same or could be misspelt. (We have no control over this
element of data input) How do I stop code running if the words are
different from that required i.e. Private Car or Commercial Veh/Van. The
combo stops us from changing the text to any other than that required, but
the code still runs if the word "Car" was imported. How do I stop the code
running with a message telling the operator that they must select the
correct type from the combo box?
If (Me.Insurer) = "AAC" Or (Me.CarCommercial) = "Private Car" Or
(Me.CarCommercial) = "Commercial Veh/Van" Then
GoTo SkipMe
Else
If (Me.CarCommercial) = !!! Help needed here !!! Any text other than above
or null !!!! Then
MsgBox "You Cannot Proceed Without Entering Private Car or Commercial
Veh/Van"
Me.InvoiceVatTo = "Error Insufficient Data You Must Not Proceed"
Exit Sub
SkipMe:
Thanks Bob