good day, i would like to ask if it is possible to update a specific cell in ms access using visual basic. If it is possible, may i ask what would be the syntax to be used? Thanks!
Asked
Active
Viewed 203 times
1 Answers
0
Yes, it is possible.
The syntax would simply be an Update Query
.
When you say "..using visual basic". I am interpreting that as using Visual Basic for Applications. Am I correct?
You can either create the query using QBE, and pass in the parameters in the Criteria
field within the query.
You could then run the query via code:
DoCmd.OpenQuery "YourQueryName"
If that's not your preferred way, you need to look into constructing SQL strings into VBA. Check out this StackOverflow question. String concatenation in VBA is different than just writing SQL in Access.
Hope this helps.