|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 11:39 AM
Points: 153,
Visits: 235
|
|
I just started at a new company, so I am trying to find my way around there database and applications. I am having to do it on my own as they don't have the staff to sit with me, and the staff doesn't really to know what I need to find out anyway.
So here's the deal. We have a MS SQL Server 2000 database (will be upgrading to 2008 R2 in a couple of weeks), we have an "Application" written in Access 2010. The main application references the MS SQL DB, but then we have these "Mini-Applications" which are more for Reporting rather than changing of data. These "Report Applications" use Access DB, the tables are obviously populated somehow from the SQL DB but when it was written items where not named the same, table structures are not the same.
What I need to accomplish. I am supposed to be basically recreating their reporting in SQL Server RS 2008 (will get installed in a couple weeks with SQL 2008 R2), but I am not that savvy in Access (used it a few times 6-7 years ago but not to this extent.). I cannot figure out how to find what is populating the Access tables from the SQL tables.
I have tried: 1. Utilizing the MsysObjects and MsysQueries tables in Access I am trying to find anything referencing the tables in question, but am not quite finding what I am looking for.
2. I can go in design view of one of the reports and see the form that is being called, then I open the form and see what qry is being called, but that query doesn't tell me what populates the tables that are used in the query to create the report.
There are many different Access DBs set up for the many different Access Reporting Applications, so some of the reports/dbs actually reference others, so the Create/Insert queries/procedures could be anywhere. I have tried to go through all of them with the Msys tables, but still nothing.
If anyone can help me out or at least give me another option to try it would be much appreciated.
Respectfully,
K8 Software Developer/Data Analyst Ozaukee, WI
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Today @ 4:51 PM
Points: 1,456,
Visits: 14,262
|
|
What I need to accomplish. I am supposed to be basically recreating their reporting in SQL Server RS 2008 (will get installed in a couple weeks with SQL 2008 R2), but I am not that savvy in Access (used it a few times 6-7 years ago but not to this extent.). I cannot figure out how to find what is populating the Access tables from the SQL tables.
Access will either be looking at "local" tables...these are tables that have been populated with data from SQL or "linked tables"....the tables are linked thro an ODBC DSN connection.
where does the data in SQL come from?...is this a production (eg OLTP) SQL db ..or just a "reporting" db, in which case...how does the data get into SQL?
__________________________________________________________________ you can lead a user to data....but you cannot make them think ! __________________________________________________________________
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 6:46 AM
Points: 106,
Visits: 405
|
|
| I would expect they used the linked approach to the SQL Server tables using ODBC. If you look at the tables in the Navigation Pane, you should see a globe symbol for each SQL Server table. That assumes of course that the Access database(s) are in the .mdb or .accdb format. If they are in the .adp format then you have a direct connection to the SQL Server tables. Hope that helps get you stated. We do that sort of thing all the time.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 11:39 AM
Points: 153,
Visits: 235
|
|
The SQL DB is populated through the Main Application-front end in Access but connected to the SQL DB.
The Access Reporting/Applications use: --SQL Tables --Access tables that are from other Access DB's (used within other access reporting application) --Local access tables initially populated from the SQL DB (this is where I am stuck and trying to figure out how these are populated.)
I need to find the connection mapping SQL table/column to Access table/column or find the Queries used to populate the data from SQL to Access.
------------------------------------------------------------------------------ I can see which tables are directly connect to the SQL DB but most of the "Reports" use the Access tables that I am not sure how are initially populated. I can see which tables are from other Access DBs I can see which are local Access tables
Respectfully,
K8 Software Developer/Data Analyst Ozaukee, WI
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Today @ 4:51 PM
Points: 1,456,
Visits: 14,262
|
|
kschwid (2/13/2012)
--Local access tables initially populated from the SQL DB (this is where I am stuck and trying to figure out how these are populated.)
I need to find the connection mapping SQL table/column to Access table/column or find the Queries used to populate the data from SQL to Access.
------------------------------------------------------------------------------ I can see which tables are directly connect to the SQL DB but most of the "Reports" use the Access tables that I am not sure how are initially populated. I can see which tables are from other Access DBs I can see which are local Access tables
somewhere, some code is being run to update your "local " Access tables.....we cant see what you can see...but are there any "update" buttons , modules, on start up procs that are being run?
__________________________________________________________________ you can lead a user to data....but you cannot make them think ! __________________________________________________________________
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 11:39 AM
Points: 153,
Visits: 235
|
|
One of the Report Applications (in Access) that I am looking to recreate some of the reports from, does have a refresh button. I look at the buttons properties and on the event tab it says "on Click" - calls Refresh_Main I click the ... button so it takes me there and I get Figure 1 in the attachment.
I then go to look at that query and its in relation to the user/time, date and database logging. It doesn't call a query to populate tables.
--------------- I am unsure how to find out if it has a module or procedures at start-up. That's almost what I have been trying to figure out how to see. Because that is my assumption as well is its something at start up.
Respectfully,
K8 Software Developer/Data Analyst Ozaukee, WI
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Today @ 4:51 PM
Points: 1,456,
Visits: 14,262
|
|
kschwid (2/13/2012) One of the Report Applications (in Access) that I am looking to recreate some of the reports from, does have a refresh button. I look at the buttons properties and on the event tab it says "on Click" - calls Refresh_Main I click the ... button so it takes me there and I get Figure 1 in the attachment.
no attachment ??
__________________________________________________________________ you can lead a user to data....but you cannot make them think ! __________________________________________________________________
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 11:39 AM
Points: 153,
Visits: 235
|
|
So sorry...
Respectfully,
K8 Software Developer/Data Analyst Ozaukee, WI
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Today @ 4:51 PM
Points: 1,456,
Visits: 14,262
|
|
ok...what does query "z_log_refresh" do? the "open query" at the bottom of attachment.
am getting a bit OOMD on this...my Access "skills" were based on VBA not the wonderful world of embedded macros et al
__________________________________________________________________ you can lead a user to data....but you cannot make them think ! __________________________________________________________________
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 11:39 AM
Points: 153,
Visits: 235
|
|
Here is the code in z_log_refresh query
INSERT INTO DATABASE_LOGIN_FILE ( [USER], [TIME], [DATE], [DATABASE], COMPUTER, NOTES ) SELECT Environ("USERNAME") AS [USER], Time() AS [TIME], Date() AS [DATE], "Refresh HD-Stat" AS [DATABASE], Environ("COMPUTERNAME") AS COMPUTER, "LOGIN" AS NOTES;
Respectfully,
K8 Software Developer/Data Analyst Ozaukee, WI
|
|
|
|