Run-time Error 3075

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am receiving the following error when attempted to do a last name and first
name search. The problem seems to lay with the first name (as I can do a
last name search).

Run-time error '3075'

Extra ) in query expression '(((tblMaster.LastName) Like 'berry*') And
(tblMaster.FirstName) Like 'c*))'.

Here is the VB Coding:


Forms![frmBioA1VIP].RecordSource = v4
Forms![frmBioA1VIP].Refresh
Forms![frmBioA1VIP].SetFocus
DoCmd.Close acForm, "frmViewVIPBio"


Any ideas how to solve this issue?
 
Did you count the parentheses? I count 4 opening, and 5 closing. You're also
seem to be missing a closing quote after 'c*.

Personally, I'd use:

((tblMaster.LastName Like 'berry*') And (tblMaster.FirstName Like 'c*'))
 
Thanks. The extra ) was definitely the problem. Sorry for the delay in
response.

Douglas J Steele said:
Did you count the parentheses? I count 4 opening, and 5 closing. You're also
seem to be missing a closing quote after 'c*.

Personally, I'd use:

((tblMaster.LastName Like 'berry*') And (tblMaster.FirstName Like 'c*'))


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Curious1975 said:
I am receiving the following error when attempted to do a last name and first
name search. The problem seems to lay with the first name (as I can do a
last name search).

Run-time error '3075'

Extra ) in query expression '(((tblMaster.LastName) Like 'berry*') And
(tblMaster.FirstName) Like 'c*))'.

Here is the VB Coding:


Forms![frmBioA1VIP].RecordSource = v4
Forms![frmBioA1VIP].Refresh
Forms![frmBioA1VIP].SetFocus
DoCmd.Close acForm, "frmViewVIPBio"


Any ideas how to solve this issue?
 

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

Run time error 3075 1
Run Time Error 3075 2
run-time error '3075' 2
HELP: Run-Time Error 3075 1
Errors 2448 and 3075! 1
Run time error 2
Run-time error '3075' 10
Run-time error '3075': 3

Back
Top