Items for a ComboBox

  • Thread starter Syed Zeeshan Haider
  • Start date
S

Syed Zeeshan Haider

Hello Experts,
I have Access 97 Pro on Win98SE.

In a simple database, which I developed with the help of Wizards and Help
files, I got following SQL line in Row Source Property field of a ComboBox.

SELECT DISTINCT Query.Credit FROM Books AS Query ORDER BY Query.Credit;

Now I have changed it into following for another database:

SELECT DISTINCT Query.[File No / Ref No] FROM [All Files] AS Query ORDER BY
Query.[File No / Ref No];

When run, it asks for Parameters. I am new to Access. Can somebody explain
its behaviour?

Thank you,
 
C

Cheryl Fischer

I am somewhat concerned about your use of the / mark in your field name.
Access recommends against this in its list of Reserved Words (see bottom of
following article) and indicates that undesirable results may occur.

http://support.microsoft.com/default.aspx?scid=kb;en-us;109312#appliesto

This article refers to Access 1 through 97; however, there is very little
difference in the Reserved Words lists for Access 2000 and forward.

If you do not want to change your field names, you may want to replace:

Query.[File No / Ref No]

with this:

Query![File No / Ref No]

which may "induce" Access to recognize the expression as referring to a
field - it may work.
 

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

Top