A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MSysObjects & add-in



 
 
Thread Tools Display Modes
  #1  
Old March 22nd, 2007, 09:05 PM posted to microsoft.public.access.forms
Aaron Kogan
external usenet poster
 
Posts: 1
Default MSysObjects & add-in

i created a form that lists objects in the MSysObjects table. i then created
an add-in w/ this form.
the problem is when i 'run' the add-in, the list of objects is from the
..mda/add-in file and NOT from the .mdb file i am accessing the add-in from.

how do reference the .mdb file's MSysObjects table and NOT the .mda's table?

thanks,

aaron


  #2  
Old March 23rd, 2007, 02:15 AM posted to microsoft.public.access.forms
'69 Camaro
external usenet poster
 
Posts: 1,049
Default MSysObjects & add-in

Hi, Aaron.

the problem is when i 'run' the add-in, the list of objects is from the
.mda/add-in file and NOT from the .mdb file i am accessing the add-in
from.


Create a recordset from the MSysObjects table in the CurrentDb(), not the
CodeDb(). Use this recordset to list the objects.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.


"Aaron Kogan" wrote in message
...
i created a form that lists objects in the MSysObjects table. i then
created an add-in w/ this form.
the problem is when i 'run' the add-in, the list of objects is from the
.mda/add-in file and NOT from the .mdb file i am accessing the add-in
from.

how do reference the .mdb file's MSysObjects table and NOT the .mda's
table?

thanks,

aaron



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:48 PM.


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