whats the difference in this

  • Thread starter Thread starter asc4john
  • Start date Start date
A

asc4john

I discovered I can do this:
dim rst as RecordSet
rst!someField = "some value" instead of this
rst.Fields("someField") = "some value"
Is there a difference between thre two? Is there a reason to use one
method and not the other?
 
Realistically, they're equivalent.

A good reason for using the second syntax is that it allows you to use a
variable for a field name, while that's not possible using the first syntax.
 

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

Back
Top