M
Morten Snedker
When trying to perform a Recordset.Find I get a runtime error 3001.
I'm using the following code:
rsFind.Open "Select IDAfdeling, cvrnr, afdeling, adresse1 From
tblCVRAfdeling", con, adOpenDynamic, adLockReadOnly
rs.MoveFirst
Do Until rs.EOF
rsFind.MoveFirst
rsFind.Find "Afdeling='" & rs!Afdeling & "' AND cvrnr='" &
rs!cvrnr & "' AND Adresse1='" & rs!adresse & "'"
A debug shows:
Afdeling='Teknisk Forvaltning' AND cvrnr='58271713' AND
Adresse1='Hold-an Vej 7'
Sending the enitre statement to Query Analyzer turns out ok.
If I use rsFind.Find on each of the three criterias alone the Find
method works.
I've been googling a bit, but can't seem to find my solution.
Thanks in advance.
/Snedker
I'm using the following code:
rsFind.Open "Select IDAfdeling, cvrnr, afdeling, adresse1 From
tblCVRAfdeling", con, adOpenDynamic, adLockReadOnly
rs.MoveFirst
Do Until rs.EOF
rsFind.MoveFirst
rsFind.Find "Afdeling='" & rs!Afdeling & "' AND cvrnr='" &
rs!cvrnr & "' AND Adresse1='" & rs!adresse & "'"
A debug shows:
Afdeling='Teknisk Forvaltning' AND cvrnr='58271713' AND
Adresse1='Hold-an Vej 7'
Sending the enitre statement to Query Analyzer turns out ok.
If I use rsFind.Find on each of the three criterias alone the Find
method works.
I've been googling a bit, but can't seem to find my solution.
Thanks in advance.
/Snedker