Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel Linking to Access

First, let me say - I'm new to Excel / VBA programming. I have developed
VB.net apps, however the environment in Excel is a little different. OK now
I don't feel so dumb. I am in the process of converting a MS Access App to a
SQL Server backend. There is an Excel spreadsheet that I KNOW accesses MS
Access. There is a macro that does the following -
Range("A2").Select
Selection.QueryTable.Refresh BackgroundQuery:=False

How does Excel know what the data source is - it does b/c it says not found
so it must be in some nook somewhere. Can someone give me a little
assistance here?? I just want to know what query is being called.

Also, Part II - this spreadsheet has about 12 worksheets with many columns
that 'seem to be' mapped to columns from the data source - but I can't see
where the mapping is taking place. HELP!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Excel Linking to Access

Not too sure what all you are looking for but here is a start.

Data - Get external Data - Edit Query

HTH

"MSSQLServerDeveloper" wrote:

First, let me say - I'm new to Excel / VBA programming. I have developed
VB.net apps, however the environment in Excel is a little different. OK now
I don't feel so dumb. I am in the process of converting a MS Access App to a
SQL Server backend. There is an Excel spreadsheet that I KNOW accesses MS
Access. There is a macro that does the following -
Range("A2").Select
Selection.QueryTable.Refresh BackgroundQuery:=False

How does Excel know what the data source is - it does b/c it says not found
so it must be in some nook somewhere. Can someone give me a little
assistance here?? I just want to know what query is being called.

Also, Part II - this spreadsheet has about 12 worksheets with many columns
that 'seem to be' mapped to columns from the data source - but I can't see
where the mapping is taking place. HELP!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel Linking to Access

Didn't help - it give me the same message as when I do a 'refresh data' -
'blah\blah\blah.mde' is not a valid path. I guess for starters, how does it
know where to look - ie; 'blah\blah\blah.mde' ??

"Jim Thomlinson" wrote:

Not too sure what all you are looking for but here is a start.

Data - Get external Data - Edit Query

HTH

"MSSQLServerDeveloper" wrote:

First, let me say - I'm new to Excel / VBA programming. I have developed
VB.net apps, however the environment in Excel is a little different. OK now
I don't feel so dumb. I am in the process of converting a MS Access App to a
SQL Server backend. There is an Excel spreadsheet that I KNOW accesses MS
Access. There is a macro that does the following -
Range("A2").Select
Selection.QueryTable.Refresh BackgroundQuery:=False

How does Excel know what the data source is - it does b/c it says not found
so it must be in some nook somewhere. Can someone give me a little
assistance here?? I just want to know what query is being called.

Also, Part II - this spreadsheet has about 12 worksheets with many columns
that 'seem to be' mapped to columns from the data source - but I can't see
where the mapping is taking place. HELP!!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Excel Linking to Access

The person who originally set up the xl wbk has evidently set up a query to
get data from an Access file.

This is done using DataGet External DataNew
and specifying MS Access as the data source. xl stores this information and
attaches it in the background and is associated with the xl range the
originator chose as the query table (destination). Usually, you can go to
DataGet External Data Edit Query and get access to the parameters of the
query. You can also get to MS Query thru this method and Select the SQL
button to see and edit the SQL code.

Ah, it just hit me -- you need to place your cursor INSIDE of the xl
destination range prior to do DataGet....Edit. Try this and see if you
find what you need. Then post back.

"MSSQLServerDeveloper" wrote:

Didn't help - it give me the same message as when I do a 'refresh data' -
'blah\blah\blah.mde' is not a valid path. I guess for starters, how does it
know where to look - ie; 'blah\blah\blah.mde' ??

"Jim Thomlinson" wrote:

Not too sure what all you are looking for but here is a start.

Data - Get external Data - Edit Query

HTH

"MSSQLServerDeveloper" wrote:

First, let me say - I'm new to Excel / VBA programming. I have developed
VB.net apps, however the environment in Excel is a little different. OK now
I don't feel so dumb. I am in the process of converting a MS Access App to a
SQL Server backend. There is an Excel spreadsheet that I KNOW accesses MS
Access. There is a macro that does the following -
Range("A2").Select
Selection.QueryTable.Refresh BackgroundQuery:=False

How does Excel know what the data source is - it does b/c it says not found
so it must be in some nook somewhere. Can someone give me a little
assistance here?? I just want to know what query is being called.

Also, Part II - this spreadsheet has about 12 worksheets with many columns
that 'seem to be' mapped to columns from the data source - but I can't see
where the mapping is taking place. HELP!!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Excel Linking to Access

If you still can't locate the source file, it may be because it has been moved.

"MSSQLServerDeveloper" wrote:

Didn't help - it give me the same message as when I do a 'refresh data' -
'blah\blah\blah.mde' is not a valid path. I guess for starters, how does it
know where to look - ie; 'blah\blah\blah.mde' ??

"Jim Thomlinson" wrote:

Not too sure what all you are looking for but here is a start.

Data - Get external Data - Edit Query

HTH

"MSSQLServerDeveloper" wrote:

First, let me say - I'm new to Excel / VBA programming. I have developed
VB.net apps, however the environment in Excel is a little different. OK now
I don't feel so dumb. I am in the process of converting a MS Access App to a
SQL Server backend. There is an Excel spreadsheet that I KNOW accesses MS
Access. There is a macro that does the following -
Range("A2").Select
Selection.QueryTable.Refresh BackgroundQuery:=False

How does Excel know what the data source is - it does b/c it says not found
so it must be in some nook somewhere. Can someone give me a little
assistance here?? I just want to know what query is being called.

Also, Part II - this spreadsheet has about 12 worksheets with many columns
that 'seem to be' mapped to columns from the data source - but I can't see
where the mapping is taking place. HELP!!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking access and excel Linda Excel Discussion (Misc queries) 0 November 5th 07 05:07 PM
Linking Data between Excel and Access alistew Excel Discussion (Misc queries) 0 May 17th 07 03:34 PM
Linking Excel to Access AB Excel Discussion (Misc queries) 0 December 5th 06 02:06 PM
linking access to excel Season Excel Discussion (Misc queries) 0 December 5th 05 10:48 PM
Linking Excel to Access. Richard Excel Discussion (Misc queries) 3 February 15th 05 09:55 PM


All times are GMT +1. The time now is 02:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"