Re: Design View
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Tue, 14 Nov 2006 20:42:06 +0800
Can we assume that you put your database is a "trusted" location? If not,
you may have some security problems, where the code won't run.
If that is not the issue, it sounds like it could be time to get Access to
recreate the database for you. Create a new (blank) database, and import
everything from the Access 2000 database.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"BBran" <bbran@xxxxxxxxxx> wrote in message
news:eYBWIL1BHHA.4292@xxxxxxxxxxxxxxxxxxxxxxx
OK, I tried your suggestions (they will open in SQL view and run fine).
However, when I switch to Design view I get the same error again. The
queries do run fine, they just won't open in design view.
"BBran" <bbran@xxxxxxxxxx> wrote in message
news:%23EC%23ysaBHHA.204@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the reply. I'll get to this next week and report back.
"Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx> wrote in message
news:%23RnALxTBHHA.2140@xxxxxxxxxxxxxxxxxxxxxxx
Okay, the quotes at the beginning indicate that Access 2007 is confused
about the name of something.
Suggested sequence:
1. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html
2. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact/Repair
3. Try the query again.
4. If it still fails at this point, open the Immediate Window (Ctrl+G), and
enter:
? CurrentDb.QueryDefs("Query1").SQL
substituting your query name for Query1.
When you press Enter, it should print the SQL statement of the query into
the Immediate Window. Copy this to clipboard.
5. Create a new query (no tables.)
Switch it to SQL View (View menu.)
Paste in the SQL statement.
Fix any line endings (e.g. the Immediate window gave you multiple lines that
broke in the middle of a field name.)
6. Test.
7. If it still fails, paste the SQL statement in a reply to this thread.
If you still have Access 2000 on your computer, at step 4 above you could
open the query in Access 2000, switch to SQL View (view menu), copy to
clipboard (Ctrl+C), switch to Access 20007, and paste the query statement
there.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"BBran" <bbran@xxxxxxxxxx> wrote in message
news:OnHkbWOBHHA.2304@xxxxxxxxxxxxxxxxxxxxxxx
Hello Allen,
I was thinking maybe there was some general reason why a query wouldn't open
in design view in Access 2007 B2TR when it would in Access 2000. Sorry for
the oversight.
The exact message is this (with quotes I added on either end):
"" is not a valid name. Make sure that it does not include invalid
characters or punctuation and that it is not too long."
Yes, the error begins with just a quotation mark. Of course I can't open
the query to see what the problem is.
--
Respectfully,
Bob Brannon
"Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx> wrote in message
news:%232ewO1JBHHA.992@xxxxxxxxxxxxxxxxxxxxxxx
Someone might have a suggestion, Bob, if you could tell us what the error
message says.
"BBran" <bbran@xxxxxxxxxx> wrote in message
news:%23j3mEHEBHHA.3396@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
I am using Access 2007 B2T2. I am trying to open a query in design view but
get an error. The same query opens fine in design view in Access 2000.
Any suggestions on how to get it open in 2007?
.
- Follow-Ups:
- Re: Design View
- From: BBran
- Re: Design View
- References:
- Design View
- From: BBran
- Re: Design View
- From: Allen Browne
- Re: Design View
- From: BBran
- Re: Design View
- From: Allen Browne
- Re: Design View
- From: BBran
- Re: Design View
- From: BBran
- Design View
- Prev by Date: RE: Update Query
- Next by Date: Re: Append to Table with Indexed Field
- Previous by thread: Re: Design View
- Next by thread: Re: Design View
- Index(es):
Relevant Pages
|