0

I am trying to set the

Me.RecordSource = "SELECT Sequence No,Catalog Number,PO Number,Assignee,Customer Name, Marketing Sales Mgr, Notes, Rating Information From Catalog Number Log 2 WHERE Catalog Number Like '34*' ORDER BY Sequence No" 

but it is giving me a Syntax error. Any ideas why. Any help would be appreciated.A screen shoot of the table is shown below.

Table Catalog NUmber Log 2

1
  • 2
    Use [Sequence No] where column name contains spaces. Catalog Number etc. Commented Dec 29, 2014 at 18:36

1 Answer 1

2

Please try this:

Me.RecordSource = "SELECT [Sequence No],[Catalog Number],[PO Number],[Assignee],[Customer Name], [Marketing Sales Mgr], [Notes], [Rating Information] From [Catalog Number Log 2] WHERE [Catalog Number] Like '34*' ORDER BY [Sequence No]"

You have white spaces in your table and column names hence they have to be put in brackets [ ] .

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.