T
Tcs
I have a particular db (Access 2k) which I link via ODBC to DB2 on our AS/400.
Currently, the code I created always runs every time I open my db. This code
deletes all the ODBC links and recreates them from a table of library and table
names of the tables to which I create my links. At the time I created my code
(almost 2 years ago) I thought that I *had* to re-establish my links every time
I opened my db.
I've just added a bit of code to give me an option. At the beginning of my
function, I've added:
strInput = "N"
strInput = InputBox("Do you want to restablish the ODBC links?...(Y/N)")
If strInput = "N" Then Exit Function
This *does* seem to work. But I don't know if it's good programming practice.
(I've done little to nothing with either input from the keyboard like this, or
forms. So I just don't know.)
Is this "OK"? If not, how *should* I do it? Any advice?
I appreciate the feedback, thanks in advance,
Tom
Currently, the code I created always runs every time I open my db. This code
deletes all the ODBC links and recreates them from a table of library and table
names of the tables to which I create my links. At the time I created my code
(almost 2 years ago) I thought that I *had* to re-establish my links every time
I opened my db.
I've just added a bit of code to give me an option. At the beginning of my
function, I've added:
strInput = "N"
strInput = InputBox("Do you want to restablish the ODBC links?...(Y/N)")
If strInput = "N" Then Exit Function
This *does* seem to work. But I don't know if it's good programming practice.
(I've done little to nothing with either input from the keyboard like this, or
forms. So I just don't know.)
Is this "OK"? If not, how *should* I do it? Any advice?
I appreciate the feedback, thanks in advance,
Tom