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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

frefreshlinks



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2004, 04:16 PM
Victor
external usenet poster
 
Posts: n/a
Default frefreshlinks

Excuse me, where do i need to put the code (fRefreshLinks) to run it ?
I´ve inserted it in a module and appears a Compile error (i´m using acces 2000) User_defined type not defyned.
I hope that you can help me because i´ve used access just a few times

  #2  
Old June 4th, 2004, 04:48 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default frefreshlinks

The user-defined type error probably indicates you don't have the DAO
reference.

From your code window, choose References from the Tools menu, and check the
box beside:
Microsoft DAO 3.6 Library

More information on references:
http://allenbrowne.com/ser-38.html


fRefreshLinks is not part of Access, so presumably you are talking about the
code in this link:
http://www.mvps.org/access/tables/tbl0009.htm
If so, you probably want to run that code when your application starts. It
needs to run before any bound form tries to load. One approach is to specify
an unbound form as your startup form under:
Tools | Startup
Use the Open event of the form to run the code, open the real form, and
cancel the Form_Open event (which unloads all your initialization code from
memory).

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Victor" wrote in message
...
Excuse me, where do i need to put the code (fRefreshLinks) to run it ?
I´ve inserted it in a module and appears a Compile error (i´m using acces

2000) User_defined type not defyned.
I hope that you can help me because i´ve used access just a few times



  #3  
Old June 4th, 2004, 05:21 PM
Victor
external usenet poster
 
Posts: n/a
Default frefreshlinks

Thanks !
Yes i´m talking about that code
I have no set (yet) the form at the startup.
Where do i need to put the code to run it when the application Starts ?
  #4  
Old June 5th, 2004, 04:06 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default frefreshlinks

Place the code in the [Event Procedure] of the On Open event of the form.

That's what "Form_Open" was referring to.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Victor" wrote in message
...
Thanks !
Yes i´m talking about that code
I have no set (yet) the form at the startup.
Where do i need to put the code to run it when the application Starts ?



 




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 09:21 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.