If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Trouble displaying access table in excel macro

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-28-09, 07:07
tlsweetie333 tlsweetie333 is offline
Registered User
 
Join Date: May 2009
Posts: 3
Question Trouble displaying access table in excel macro

I have an Access macro that runs a query. This macro functions fine in Access. I would like to run it in an Excel macro (I've very little vba knowledge and clipped what I could online). The macro I have in Excel consists of a userform that runs my Access macro/query when the user clicks a button- it requests the parameters, but then no results are displayed (the same macro produces a data table in access). I don't know if I need to add something to my Access macro or to the Excel macro to fix this, but the access guys told me it's an excel thing. Here is what I have on the Excel macro:

Sub TrackingMultiple()
Dim A As Object
Application.DisplayAlerts = False
Set A = CreateObject("Access.Application")
A.Visible = False
A.OpenCurrentDatabase ("P:\equityShared\rw\sales\Structured Equity Solutions\Institutional Coverage\Business Planning\Tracking.mdb")
A.DoCmd****nMacro "SearchMultipleFields"
Application.DisplayAlerts = True
End Sub

Any help would be much appreciated!
  #2 (permalink)  
Old 05-28-09, 07:15
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
One thread per question please, Sweetie.
If anyone would like to help, please do so here:
Trouble displaying Access query results from Excel macro
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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