![]() |
Open Access DB from Outlook
Please help. I need to open an Access 2000 database (which is on a network
server) from inside Outlook 2000, using a macro assigned to a toolbar button. If it can be done. Thank you for your help. -- Richard |
Open Access DB from Outlook
Please help. I need to open an Access 2000 database (which is on a
network server) from inside Outlook 2000, using a macro assigned to a toolbar button. If it can be done. Yes, you have to learn how to use ADO to open a connection to the database and then open a table or execute a query within the table. This the returns a recordset which you can walk through processing each row as required. Cheers, Rob. |
Open Access DB from Outlook
Am Mon, 9 Jan 2006 08:07:04 -0800 schrieb Richard:
Sample with ADO: Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Set cn = New ADODB.Connection With cn .Provider = "Microsoft.Jet.OLEDB.4.0" .ConnectionString = "D:\db.mdb" .CursorLocation = adUseClient .Mode = adModeShareDenyNone .Open End With Set rs = New ADODB.Recordset With rs .CursorLocation = adUseClient .CursorType = adOpenStatic .LockType = adLockOptimistic Set .ActiveConnection = cn .Open ("select [Field list] from [Tabellenname]") End With Finished: rs.Close cn.Close -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Please help. I need to open an Access 2000 database (which is on a network server) from inside Outlook 2000, using a macro assigned to a toolbar button. If it can be done. Thank you for your help. |
All times are GMT +1. The time now is 06:45 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com