AlanAnderson
Registered User.
- Local time
- Today, 19:50
- Joined
- Nov 27, 2012
- Messages
- 31
Hi Guys,
I need to look through a table (tblVAT). If I find a record where field VATMonth is equal to my variable (varMonth) then I need to edit the other fields in that record.
If I reach EOF then I need to add a new record to the table.
The SQL I've used (Which doesn't do half the job - think of it as pseudocode
) is:
Any ideas would really be appreciated.
Regards,
Alan
I need to look through a table (tblVAT). If I find a record where field VATMonth is equal to my variable (varMonth) then I need to edit the other fields in that record.
If I reach EOF then I need to add a new record to the table.
The SQL I've used (Which doesn't do half the job - think of it as pseudocode

Code:
Set rst=Currentdb.OpenRecordset(name:="SELECT * FROM tblVAT WHERE VATMONTH=varMonth", Type:=dbOPenDynaset
Any ideas would really be appreciated.
Regards,
Alan