473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What are the first steps to using Access as a front end?

Banfa
9,065 Expert Mod 8TB
It came to my attention in another thread that Access is no longer the rather crippled excuse for a relational database that it seemed to be in version 1.

It appears that it may have moved on a little and one of the things it can do is act as a front end(user interface) to another database and this is what I would like to ask about.

Now I have an MS SQL chuntering away in the background with a web-service and a bespoke program reading and writing data in it. However it would be nice to be able to easily access the data posibily with a view to even editing or inserting in some of the tables.

So here are my questions
  1. What sort of new file in Access do I want? 'Blank data access page' or 'Project using existing data'? What are the differences between these 2 types of projects?
  2. Will an Access project of this nature alter the the MS SQL database, i.e. if a set-up a form in Access is that solely in Access or does it get written back to the MS SQL server somehow?
  3. What are the chances of me accidentally doing something wrong and obliterating the data in the MS SQL server database?
  4. Is it possible to set up a Report/View that will update automatically as data is written into the MS SQL server database by the other serives?
  5. Do you have any other tips for me in this matter?

Cheers
Ben
Feb 16 '07 #1
6 2058
nico5038
3,080 Expert 2GB
Simply use the File/Get externaldata/Link tables
Select ODBC as filetype and navigate to your MS SQL database.
Now select the table(s) and Access will show them as regular (linked) tables.
All normal Access functions can be used, like for "normal" Acces tables.

Only processing (large update/select queries) might be slow.
In such a case read the F1 file for "Pass through queries" to see how to speedup those.

Nic;o)
Feb 16 '07 #2
ADezii
8,834 Expert 8TB
It came to my attention in another thread that Access is no longer the rather crippled excuse for a relational database that it seemed to be in version 1.

It appears that it may have moved on a little and one of the things it can do is act as a front end(user interface) to another database and this is what I would like to ask about.

Now I have an MS SQL chuntering away in the background with a web-service and a bespoke program reading and writing data in it. However it would be nice to be able to easily access the data posibily with a view to even editing or inserting in some of the tables.

So here are my questions
  1. What sort of new file in Access do I want? 'Blank data access page' or 'Project using existing data'? What are the differences between these 2 types of projects?
  2. Will an Access project of this nature alter the the MS SQL database, i.e. if a set-up a form in Access is that solely in Access or does it get written back to the MS SQL server somehow?
  3. What are the chances of me accidentally doing something wrong and obliterating the data in the MS SQL server database?
  4. Is it possible to set up a Report/View that will update automatically as data is written into the MS SQL server database by the other serives?
  5. Do you have any other tips for me in this matter?

Cheers
Ben
If you wish to provide a Client/Server application that provides efficient, native mode access to SQL Server, you may want to create a Microsoft Access Project. This is accomplished through an OLE DB interface. It is very similiar to working in an Access Database in that the process of creating Forms, Reports, Data Access Pages, Macros, and Modules is virtually the same as that used within an Access Database. Once you connect to an SQL Server Database, you can View, Create, Edit, Modify, and Delete Tables, Views, Stored Procedures, User Defined Functions, and Database Diagrams by using the various Project Components. The user interface for working with Objects is different froms its equivalent counterpart in an Access Database, but it is nonetheless user friendly. Many of the Wizards contained within an Access Database are also present in an Access Project. Familiarization with SQL terminology relating to various items such as Data Types (char, varchar, tinyint, smallint, etc.), wildcards (% and _), functions (SUBSTING(), Rand()), etc. are strongly recommended. To create an Access Project is simple:
1. File ==> New ==> Project using existing data
2. Enter a filename .adp extension will automatically be added
3. The Data Link Properties Dialog Box will appear. This Dialog contains the required Parameters for connecting to an SQL Server Database. Fill in the appropriate values then click OK
.
4. Click on Test Connection to verify that you have connected to SQL Server
5. Click Create.
I hope this has answered all or at least most of your questions.
Feb 17 '07 #3
NeoPa
32,556 Expert Mod 16PB
  1. What sort of new file in Access do I want? 'Blank data access page' or 'Project using existing data'? What are the differences between these 2 types of projects?
  2. Will an Access project of this nature alter the the MS SQL database, i.e. if I set-up a form in Access is that solely in Access or does it get written back to the MS SQL server somehow?
  3. What are the chances of me accidentally doing something wrong and obliterating the data in the MS SQL server database?
  4. Is it possible to set up a Report/View that will update automatically as data is written into the MS SQL server database by the other serives?
  5. Do you have any other tips for me in this matter?
Firstly, ADezii's response may very well be the best way for you to go. I don't have a lot of experience of other types of Access databases. I'll try to answer your questions in order though as well as I can, for reference if nothing else.
  1. I think you want the latter but I normally use the simple Blank Database option.
    1. Blank data access page is a way of working in ASP. I've not heard too many good things about the implementation.
    2. Project using existing data is described better by ADezii
  2. This would be stored in the Access project.
  3. This depends on your SQL Server permissions (you can, after all, restrict the data to R/O if you wish), but if you have full Write access then yes, it is possible to scramble your data just as it would be in OSQL (or the 2005 equivalent.)
  4. Sort of. You can run a bound Form or Report which reflects the SQL Server data but it will not update automatically once it has been displayed unless you add some code to do this periodically. There is no Trigger type facility that would cause the object to update on data update.
  5. Just one for now.
    If you want to work most efficiently with the data, then consider using Pass-Thru queries which allow you to pass the T-SQL straight through to the SQL Server Back-End. It shouldn't be necessary to use the Pass-Thrus for everything, but when you do (If a SELECT query) the results are not easily formatted. To return formatted results in this situation easily, just build a simple Access QueryDef (Saved query) based on the Pass-Thru as a RecordSet.
HTH.
Feb 18 '07 #4
Banfa
9,065 Expert Mod 8TB
Sorry about the delayed reply, a number of more urgent things got put on my plate.

Anyway thank you for the help, I expect(actually I know) I will have other questions but I will create further threads for them.
Feb 27 '07 #5
NeoPa
32,556 Expert Mod 16PB
Sorry about the delayed reply, a number of more urgent things got put on my plate.
That's not a problem. We can appreciate that, but anyway it's a forum web site and prompt responses are not generally important (We have enough to keep us busy with all the other threads ;))
Anyway thank you for the help, I expect(actually I know) I will have other questions but I will create further threads for them.
Following the site guidelines perfectly :D
Well, since you put them together I suppose that is to be expected.
Feb 27 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
Here are a few whitepapers you may find useful. The first is about upsizing form Access to SQL Server but the issues raised are also applicable in the reverse.

http://www.fmsinc.com/Upsize/docs/Ev...plications.pdf

General whitepaper on the use of Access within an organisation.

http://www.fmsinc.com/Upsize/docs/DBEvolution.pdf


Mary
Feb 27 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Samuel | last post by:
I am building an web application that will be hosted on load balanced servers (multiple front and one backen db). The application will have to allow users to upload files onto the server. For...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
41
by: Matt Alanzo | last post by:
Our SOHO 2 person compay sells furniture (not programmers). In '98 we paid $,$$$ for a VBA -Access '97 accounting application, including VBA source code .... an huge investment for us then (and...
2
by: Tim Stevens | last post by:
Hello, This is the first time I have had to resort to posting on here, as Ive always been able to find a solution to my problems in the past by browsing postings by others. So, to start with I...
24
by: Bob Alston | last post by:
Most of my Access database implementations have been fairly small in terms of data volume and number of concurrent users. So far I haven't had performance issues to worry about. <knock on wood> ...
34
by: radink | last post by:
Well, I've got my DB ready to go. Now what? I need to host it on our Win2003 server. How do clients use it? I think im getting more confused as I try to figure this out. We are a small company...
13
by: nicolegw | last post by:
I've tried googling for the answer to my question, so my apologies if it's been asked before or is terribly obvious. I'm a volunteer doing data entry for research. My office has an Access...
2
by: Robert | last post by:
dear sir: I have read the c++ primer plus 5 book, and do the chapter 12 programming exercises question 5, but the average_wait have negative result. I don't understand why? here is the code,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.