ODBC connection and running something every hour or so

lala

Registered User.
Local time
Today, 10:20
Joined
Mar 20, 2002
Messages
741
i have more than 1 question and not sure if i should open a thread for each question or if combining them is ok.

if i shouldnt've combined them - i'm sorry.

1. is there a way to create an ODBC connection by code? so that i don't have to go on every computer and create the ODBC connection (I'm talking about going to the window below in case i'm using wrong words to describe it)

ODBC.png




2. how do i run some code inside in Access db every few hours without using Windows Task Manager to open a database that has an autoexec macro?



3. I'm thinking of letting some computers use 2010 Access Runtime. i've never used it myself or had users use Runtime without having Access installed. does anyone know if there are issues?


thank you very much!!
 
1) It can be done in code, but you can also create a File DSN on the server and link your tables using that. Then nothing has to be done on each PC.

2) You can use the timer event of a form.

3) I have a few computers using the 2010 runtime (running 2000 mde's and 2007 accde's) with no problems thus far. With any runtime version you want to have good error handling, as an unhandled error will kick the user out of the program.
 
thank you so much!!!!!!!!!!!!!!!
 
1) It can be done in code, but you can also create a File DSN on the server and link your tables using that. Then nothing has to be done on each PC.

can you explain the file dsn please? you mean creating a connection in the window above on the server and link my tables using that dsn file?????
that easy?
 
Yes, on the File DSN tab. I usually create a hidden shared directory on the server to hold them, though I don't know if that's required.
 
Yes, on the File DSN tab. I usually create a hidden shared directory on the server to hold them, though I don't know if that's required.

wow, thank you again. i can't believe the pain i've been going thru))))
 
ETA never mind, i said something stupid as usual.
 
Last edited:
1) It can be done in code, but you can also create a File DSN on the server and link your tables using that. Then nothing has to be done on each PC.

hi, so i'm now up to this point. i set up a file DSN on the server and it works fine on one computer but when i try to open the database on another - it doesn't.

here's my File DSN

[ODBC]
DRIVER=SQL Server
UID=natalie
DATABASE=MY DATABASE NAME
WSID=COMPUTER NAME DSN WAS SETUP ON
APP=Microsoft® Windows® Operating System
Trusted_Connection=Yes
SERVER=MYSERVER\MYSQLSERVER


the connection looks to be computer and user-specific. is that the problem?

the way i understood the purpose of a file DSN is to avoid having to create ODBC connections on each computer. so i thought that i create one front end that links to the FileDSN and it will then work on any computer. am i wrong?
thank you
 
i think they're just explaining how to create an account for the sql server. or am i missing something on that page?

i already have an account that has access to the SQL server.
and i didn't understand, what do you put instead of the TRUSTED CONNECTION line?
 
never mind, i'm an idiot, everything works, thank you
 
Ah good, glad you got it sorted out. I was finally at a point where I could remote into a work server.
 

Users who are viewing this thread

Back
Top Bottom