Can I code like this?

T

TA

Dear all experts,
I have a piece of code like this , could you take a look
can we have a diff. way to write a short then? Thanks you
for any recomendation.

If (rs.Fields("sitetype").Value) <> 1 _
Or (rs.Fields("sitetype").Value) <> 2 _
Or (rs.Fields("sitetype").Value) <> 3 Then
Rs3.AddNew
Rs3!ident = tempID
Rs3!code = "111"
Rs3.Update
End If

Best Regards,
TA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top