ScrmingWhisprs
I <3 Coffee Milk.
- Local time
- Today, 15:55
- Joined
- Jun 29, 2006
- Messages
- 156
I found this code online from http://www.mvps.org/access/tables/tbl0009.htm. However, I'm not exactly sure how to implement it in my Front End. I copied the code into a new module, then put this in the OnLoad Event of my startup form:
But for some reason, the dialog box asking if I want to refresh the links everytime I open the database, even when they didn't need refreshing.
When I tested it by moving my backend, an error came up saying Sub or Function not defined which then opened the VBA window highlighting this part of one of the Functions (highlighted in red):
So I'm guessing there's more that I have to do than just putting the Call fRefreshlinks() in the OnOpen even of the startup form. I just need a little guidance.
Thanks so much!!
SW
Code:
Call fRefreshLinks()
But for some reason, the dialog box asking if I want to refresh the links everytime I open the database, even when they didn't need refreshing.
When I tested it by moving my backend, an error came up saying Sub or Function not defined which then opened the VBA window highlighting this part of one of the Functions (highlighted in red):
Code:
Function fGetMDBName(strIn As String) As String
'Calls GetOpenFileName dialog
Dim strFilter As String
[COLOR="Red"]strFilter = ahtAddFilterItem(strFilter, _[/COLOR]
"Access Database(*.mdb;*.mda;*.mde;*.mdw) ", _
"*.mdb; *.mda; *.mde; *.mdw")
strFilter = ahtAddFilterItem(strFilter, _
"All Files (*.*)", _
"*.*")
fGetMDBName = ahtCommonFileOpenSave(Filter:=strFilter, _
OpenFile:=True, _
DialogTitle:=strIn, _
Flags:=ahtOFN_HIDEREADONLY)
End Function
So I'm guessing there's more that I have to do than just putting the Call fRefreshlinks() in the OnOpen even of the startup form. I just need a little guidance.
Thanks so much!!
SW