LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do you get data to/from Access DB in Excel VB?


Sub Macro1()
main_dir = ThisWorkbook.Path & "\"
Set myobj = CreateObject("Access.Application")
myobj.Visible = True
c_db = main_dir & "c_hist.mdb"
myobj.OpenCurrentDatabase (c_db)
myobj.docmd.openTable ("t1")

'What do you put in here to change the value(s) in record 1?

myobj.docmd.Close
myobj.docmd.openQuery ("member")

'What do you put in here to copy the values
'returned by the query to the clipboard?

myobj.docmd.Close
End Sub
 
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
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
Data from Access to Excel Paul Dennis Excel Discussion (Misc queries) 8 October 10th 06 06:33 PM
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM
Excel data to Access? Norm[_5_] Excel Programming 5 October 14th 04 10:08 AM
Data from Excel to Access No Name Excel Programming 2 August 20th 04 11:04 AM


All times are GMT +1. The time now is 05:07 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"