I have the follwing code to fill in any blank records i have in field1
Set db = CurrentDb()
Set rst = db.openrecordset("tblInitialAgentCcsData", dbOpenDynaset)
rst.MoveFirst
Do While Not rst.EOF
strField1 = rst!Field1
rst.MoveNext
Do While IsNull(rst!Field1)
rst.edit
rst!Field1 = strField1
rst.Update
rst.MoveNext
Loop
Loop
rst.Close
what i need to be able to do is sort the table by Field241 could someonwe please help and let me know where i need to insert the sort by code
thanks
Set db = CurrentDb()
Set rst = db.openrecordset("tblInitialAgentCcsData", dbOpenDynaset)
rst.MoveFirst
Do While Not rst.EOF
strField1 = rst!Field1
rst.MoveNext
Do While IsNull(rst!Field1)
rst.edit
rst!Field1 = strField1
rst.Update
rst.MoveNext
Loop
Loop
rst.Close
what i need to be able to do is sort the table by Field241 could someonwe please help and let me know where i need to insert the sort by code
thanks