i have a mdb table in which i want to access the data from mdb table into new table i,e Operator but the condition is if the data in first row of column say "operator_code" is "alfred" . The name alfred is inserted into operator
OK
and when i move to the next row in the column i,e "operator_code"
lets assume it is empty in that case the value of previous row i,e "alfred" must be inserted into the empty row
i create a loop but it is not working for empty record
Expand|Select|Wrap|Line Numbers
- For reccount = 1 To rsmaster.RecordCount
- If Not IsNull rsmaster.Fields("Yp1VOp") Then
- YpVcode = rsmaster.Fields("Yp1VOp")
- squery = "insert into operator values( ' " & YpVcode & " ' )"
- dbmaster.Execute (squery)
- Else
- squery = "insert into operator values( ' " & YpVcode & " ' )"
- dbmaster.Execute (squery)
- End If
- rsmaster.MoveNext
- Next
best regards
varinder