Hi when I click the command button to run this piece of code:
Error in line 5: 'Adodc2.Records et.MoveFirst2'
Run-time error '91':
Object variable or With block variable not set
What do I have to do to fix it? This was working before but it suddenly stopped. I am using Adodc's elsewhere but not with the same name.
Thanks!
PS: This is only the code up to where the errors occur, I am aware that on this it has no 'End Sub' etc, Thanks!
Code:
Private Sub recoverpass_cmd_Click() Dim c As String Dim b As String Dim foundflag As Integer Adodc2.Recordset.MoveFirst Do b = Adodc2.Recordset.Fields!Username c = Adodc2.Recordset.Fields!Security
Run-time error '91':
Object variable or With block variable not set
What do I have to do to fix it? This was working before but it suddenly stopped. I am using Adodc's elsewhere but not with the same name.
Thanks!
PS: This is only the code up to where the errors occur, I am aware that on this it has no 'End Sub' etc, Thanks!
Comment