G
Guest
Hi,
I use this code to get the hours in a contracts
Set rst1 = CurrentDb.OpenRecordset("Select count(PeriodNo)/2 as hours from
IERSPROD_TOFFERSLOT Where OfferCD = '" & sOfferCD & "'")
rst1.MoveFirst
lHours = rst1(0)
there can only be one answer. Is there a way to load the hours into 'lHours'
with out using a recordset
Thanks
I use this code to get the hours in a contracts
Set rst1 = CurrentDb.OpenRecordset("Select count(PeriodNo)/2 as hours from
IERSPROD_TOFFERSLOT Where OfferCD = '" & sOfferCD & "'")
rst1.MoveFirst
lHours = rst1(0)
there can only be one answer. Is there a way to load the hours into 'lHours'
with out using a recordset
Thanks