?
Solved

Excel & SQL View 2010 issues

Posted on 2012-09-05
3
Medium Priority
?
380 Views
Last Modified: 2012-10-17
upgraded to Access 2010.  I have encountered 2 problems.  using the import from excel button, so this isn't a VB issue.  can't open the query bject to make changes.  When typing in sql into a query or a report or anything in a microsoft product, it parses the sql statement, then it removes parenthencies in it, the query is bad.  

1.  When loading a table from Excel, the load completes properly the first time.  When I try to load another sheet, I get a “Subcript out of bounds” error dialog.
2.  I created a query using the SQL View.  Now when I try to open and edit the query, I get a “JOIN expression not supported” error dialog and the program will not allow me to edit the query.

I applied the following with NO CHANGE:

Subscript out of range message is a Visual Basic error due to an array subscript that is not valid because it falls outside the allowable range. The lowest subscript value for a dimension is always 0, and the highest subscript value is returned by the GetUpperBound method for that dimension. Supposedly once you change the subscript to within that range the error will stop.

The “JOIN expression not supported” is a known issue. The workaround is to put brackets around your JOIN expression.

Can anyone suggest anything else that may resolve this issue?
0
Comment
Question by:SDTSS
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 38369450
<upgraded to Access 2010.  I have encountered 2 problems.  using the import from excel button, so this isn't a VB issue.  can't open the query bject to make changes.  When typing in sql into a query or a report or anything in a microsoft product, it parses the sql statement, then it removes parenthencies in it, the query is bad. >
...Not sure I understand what this all means.

<using the import from excel button, so this isn't a VB issue.>
Do you have a valid table from Excel?

< can't open the query bject to make changes.>
Can you create a new query from this table?

< When typing in sql into a query or a report>
Unclear on why or how you are entering SQL for a Report...?

How about you post a sample of this DB and the Excel files to make this all clearer...?

Sample database notes:
1. Back up your database(s).
2. Combine the front and back ends into one database file.
3. Remove any startup options, unless they are relevant to the issue.
4. Remove any records unless they are relevant to the issue.
5. Delete any objects that do not relate directly to the issue.
6. Remove any references to any "linked" files (files outside of the database, Images, OLE Files, ...etc)
7. Remove any references to any third party Active-x Controls (unless they are relevant to the issue)
8. Remove, obfuscate, encrypt, or otherwise disguise, any sensitive data.
9. Unhide and hidden database objects
10. Compile the code. (From the VBA code window, click: Debug-->Compile)
11. Run the compact/Repair utility.
12. Remove any Passwords and/or security.
13. If a form is involved in the issue, set the Modal and Popup properties to: No
    (Again, unless these properties are associated with the issue)
14. Post the explicit steps to replicate the issue.
15. Test the database before posting.

In other words, ...post a database that we can easily open and immediately see and/or troubleshoot the issue.
And if applicable, also include a clear graphical representation of the *Exact* results you are expecting, based on the sample data.

JeffCoachman
0
 

Author Closing Comment

by:SDTSS
ID: 38505759
I appreciate the effort Jeff. The client has been too busy to work with me, so apparently it's not a huge issue.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38506028
Then just request that the Q be closed.

I appreciate the gesture of giving me the points for "effort"

But in reality, accepting a post that is not the "solution" will confuse other members here searching for the same issue.

Please click the Request Attention link and ask that this be changed.

;-)

Jeff
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question