G Marshall
Board Regular
- Joined
- Dec 31, 2002
- Messages
- 134
Hello
I am trying to adjust a database set up by someone else and a report I want opens up with a strange date formula. It is linked to a module and I have no idea what the code means. This is the code could someone possibly tell me what it means, particularly the "fstryear" section.
Function fStrtYear() As Variant
Dim db As Database
Dim rs As Recordset
Set db = DBEngine(0)(0)
Set rs = db.OpenRecordset("Control", DB_OPEN_DYNASET)
rs.MoveFirst
fStrtYear = rs.[Year_Start]
End Function
Thanks
Gerald
I am trying to adjust a database set up by someone else and a report I want opens up with a strange date formula. It is linked to a module and I have no idea what the code means. This is the code could someone possibly tell me what it means, particularly the "fstryear" section.
Function fStrtYear() As Variant
Dim db As Database
Dim rs As Recordset
Set db = DBEngine(0)(0)
Set rs = db.OpenRecordset("Control", DB_OPEN_DYNASET)
rs.MoveFirst
fStrtYear = rs.[Year_Start]
End Function
Thanks
Gerald