Hey folks.
I'm so new to VBA, that I'm in need of some simple - I'm 5 years old - type instructions.
I do know ASP, and so I'm familiar with how things should work, just not the syntax.
Anyway, I have a table from which I'd like to generate a recordset.
How do I create a recordset in VB and refer to the instantiated fields?
I took a crack:
I'm so new to VBA, that I'm in need of some simple - I'm 5 years old - type instructions.
I do know ASP, and so I'm familiar with how things should work, just not the syntax.
Anyway, I have a table from which I'd like to generate a recordset.
How do I create a recordset in VB and refer to the instantiated fields?
I took a crack:
Code:
Dim RS As recordset
Dim newPrice
Set RS = CurrentDb.openrecordset("temp")
Do While Not RS.EOF
If CLng(RS(price)) > 999999 Then
newPrice = (CLng(Trim(RS(price)))) / 1000000
newPrice = CStr(newPrice) & "M"
RS(price) = newPrice
End If
Loop