BrockLanders
Programmer
I have an Access 2000 db and writing code to export records in a table to Excel. I've got that working, but I want to include some validation "rules".
If it's the first record in the recordset I want the code to export to column E in Excel. However, I don't know how to code VB to do this. It seems like there should be a function like RecordNumber, but I can't find it. That way I could say: If RecordNumber = 1 Then.... In searching the VB help file I found AbsolutePosition, but couldn't get it to work.
Any ideas? Help is very much appreciated.
If it's the first record in the recordset I want the code to export to column E in Excel. However, I don't know how to code VB to do this. It seems like there should be a function like RecordNumber, but I can't find it. That way I could say: If RecordNumber = 1 Then.... In searching the VB help file I found AbsolutePosition, but couldn't get it to work.
Any ideas? Help is very much appreciated.