Seems I'm more of a questioner lately rather then a helper... But, I've got another question.
I have an .mdb database that I am able to open from excel (OpenDatabase), extract the data I need and enter into an excel spreadsheet in a format that is easy to understand.
Fine.
But I want to be able to "correct" or edit some of that data from my "user friendly" GUI I've setup in excel and send that back to the .mdb database.
I wouldn't be adding any records, simply overwriting some of the data of some of the records.
Something like this pseudo code:
Following?? Am I explaining myself correctly??
It's the "Overwrite Data" part that I am not sure about. The rest of the code around it is a breeze, but I just don't know how to see if Data in the Record matches my Excel data and if it does not, then how do I overwrite it?
********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!
I have an .mdb database that I am able to open from excel (OpenDatabase), extract the data I need and enter into an excel spreadsheet in a format that is easy to understand.
Fine.
But I want to be able to "correct" or edit some of that data from my "user friendly" GUI I've setup in excel and send that back to the .mdb database.
I wouldn't be adding any records, simply overwriting some of the data of some of the records.
Something like this pseudo code:
Code:
If .cells(Row, 1).Value = Record Then
If .cells(Row, 2).Value <> Data1 Then Overwrite Data
If .cells(Row, 3).Value <> Data2 Then Overwrite Data
.
.
.
End If
Following?? Am I explaining myself correctly??
It's the "Overwrite Data" part that I am not sure about. The rest of the code around it is a breeze, but I just don't know how to see if Data in the Record matches my Excel data and if it does not, then how do I overwrite it?
********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!