error 3464

F

fth

Hi,

My proc stop and I don't know why ...

Private Sub copyFile_Click()
Dim MyAcc As Access.Application
Set MyAcc = New Access.Application
Dim rst As DAO.Recordset
Dim strSQL As String

strSQL = "SELECT AppliPath, AppliName From NetworkSearchAppli "
strSQL = strSQL & "WHERE peridicity between 1 and 3;"


Set rst = CurrentDb.OpenRecordset(strSQL)
'error 3464 data mismatch in criteria expression' ?

If rst.BOF And rst.EOF Then
Set rst = Nothing

many thnaks by advance

Fred
 
B

Brendan Reynolds

You need quotes around text values ...

WHERE peridicity BETWEEN '1' AND '3'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top