Solved

programming sql queries in Access

Posted on 2013-01-03
7
236 Views
Last Modified: 2013-01-08
Is it possible to program SQL queries in Access with the "dbo_ xxxxxx" scheme?
Would the underscores cause an error?
0
Comment
Question by:zachvaldez
7 Comments
 
LVL 26

Assisted Solution

by:jerryb30
jerryb30 earned 150 total points
ID: 38740909
No, the underscore will not cause an error.
Yes, you can make sql queries against (presumably) linked SQL Server tables.
0
 
LVL 84
ID: 38740942
Note that those queries must use ACCESS syntax, and not SQL Server Syntax. You can use "pass through" queries to do this - pass through queries are defined in Access, but you also define a connection string to your SQL database. The Access database then "passes through" your query to the sql server without parsing.
0
 

Author Comment

by:zachvaldez
ID: 38741369
can you provide examples please?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:zachvaldez
ID: 38741498
Id like to repharse the question?
"How can I program SQL queries in MS Access with the "dbo_tablename" schema used in SQL server?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 150 total points
ID: 38741722
Then perhaps you need to clearly define what you mean by "SQL queries" and "Program".
By SQL Queries, do you mean queries created in Access, based on linked SQL tables?
If so, post the SQL.

By "Program" do you mean "run" those queries?
You can certainly "Run" an Access query based on SQL Linked tables.
If you are asking if you can "Write/Create" queries in Access based on Linked SQL tables, then you will have to describe, in detail, what you need to do.
(possibly posting graphical examples)

But like zachvaldez asks, it is always best to post a clear example of what you have, and what you ultimately need to end up with.

For example, you never really stated what these queries are doing, or what type of queries these were:
Select queries, or Action queries, or Crosstab queries, Group By, ...etc

Not sure if any of this is even relevant, we just need a little more clarification.

Then I am sure that any of the experts here will be able to provide a more targeted solution.

;-)

JeffCoachman
0
 

Author Closing Comment

by:zachvaldez
ID: 38756187
It is an OK answer but thanks for your help
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38756421
Well it was not really an answer, just a request for more info.

Is this issue now resolved?
If so, what was the actual solution?
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now