Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<b>How can I run a function on a linked table?</B>

Status
Not open for further replies.

NewProgrammer1234

Programmer
Sep 4, 2001
7
US
I need to run a function on a linked table and I am not sure how to define MyTable as a linked table. I am new to Access VB and my Access help files are corrupt so i am in a bit of a bind. My code gives me an error at the "Set MyTable= . . ." I know I need to define MyTable as a linked table but I don't know how. Any help would be greatly appreciated.

Dim MyDB As Database, MyTable As Recordset
Dim AI_code As Long, Count_changes As Long, AI_code_variant As Variant
Set MyDB = DBEngine.Workspaces(0).Databases(0)
Set MyTable = MyDB.OpenRecordset(Table_name, DB_OPEN_TABLE)

 
Umm, firstly, re-install the help files. As annoying as they are, you need them.

In your code example, where or what is "Table_name"
It should be a string, exactly representing a table name in the table list.

Deefa.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top