Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default macro in excel to call a access module to run.

I'm try to get a module to run thats in Access from my Excel macro.
This is the code. I get a run time error of "424" Object required on
the call command.
The reasoncode521 is the name of the Module in Access and is the place
highlighted. I'm using 2003.

What i'm I missing so this macro can find the reasoncode521 module to
run.

Sub get521data()
Dim daoapp As DAO.DBEngine
Dim dbcontracts As DAO.Database
Dim rscontracts As DAO.Recordset

Set daoapp = New DAO.DBEngine
Set dbcontracts = daoapp.OpenDatabase("G:\Pricing\1 Pete Peters\Reports
\monthly contracts and intostock.mdb")
Set rscontracts = dbcontracts.OpenRecordset("Contracts")
Set rsrecords = dbcontracts.OpenRecordset("Reasoncodes")

Call reasoncode521.Auto_create_contractdetail

Set rscontracts = Nothing
Set dbcontracts = Nothing
Set daoapp = Nothing
end sub


Thanks

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
to call procedure in a worksheet in a module CAPTGNVR Excel Discussion (Misc queries) 4 January 30th 07 09:39 PM
Excel vba to call Access Macro ppyxl Excel Worksheet Functions 0 July 6th 06 02:42 PM
Excel vba to call Access Macro ppyxl Excel Discussion (Misc queries) 0 July 6th 06 02:41 PM
Query a Access database that has a module from Excel Oggie Excel Discussion (Misc queries) 1 January 4th 05 08:43 AM
Access Module coded converted to Excel Function Adam Excel Discussion (Misc queries) 1 December 23rd 04 02:48 PM


All times are GMT +1. The time now is 04:52 AM.

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

About Us

"It's about Microsoft Excel"