Hi all,
OK - I know I am probably being thick, but I can't see my error.
I have written a very simple sub to try to identify where I am going wrong but no joy.
I have attached a screen print showing the relevant table, module, error message and immediate window. I can not figure out what is causing the error.
	
	
	
		
It is probably something really silly ( and I will be very embarrassed), but can anyone help?
Thanks
 OK - I know I am probably being thick, but I can't see my error.
I have written a very simple sub to try to identify where I am going wrong but no joy.
I have attached a screen print showing the relevant table, module, error message and immediate window. I can not figure out what is causing the error.
		Code:
	
	
	Public Sub Test()
 
    Dim i As Integer
    
    Dim dbs As Database
    Dim rs As DAO.Recordset
   
    Set dbs = CurrentDb
    Set rs = db.OpenRecordset("tblSalesPayMethods")
    
    For i = 0 To rs.RecordCount - 1
    
    dubug.Print rs.Fields("Method")
    
   
   Next i
    
    rs.Close
    
    Set rs = Nothing
    Set dbs = Nothing
    
        
End SubThanks
 
	