G
Guest
My if stmt is not in the correct syntax and I've tried rst.Carrier; Carrier
and the following. It always empty and I know there is a record in the table.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb
Set rst = db.OpenRecordset("WorkTable", dbOpenForwardOnly)
rst.MoveFirst
'check to see if RRG policy exist in table and if so use existing policy
number.
If rst(Carrier) = "RRL" Then
and the following. It always empty and I know there is a record in the table.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb
Set rst = db.OpenRecordset("WorkTable", dbOpenForwardOnly)
rst.MoveFirst
'check to see if RRG policy exist in table and if so use existing policy
number.
If rst(Carrier) = "RRL" Then