How To Protect Access From ODBC Disconnects?

Dec 16, 2007

I finally got a chance to test the setup remotely, and it basically works with all the links I've set up.

I wanted to see how it would behaves should it disconnect or something and thus manage it gracefully.

First, I broke the network connection and tried to navigate to next record. Instead of getting a error message, Access just crashes. I'm not sure if this can even be trapped at all.

Secondly, I disconnected the connection then reconnected it. Access then tells me that the server has gone away, presuming because it's still looking to the old connection that was broken. Running the code to repair link fails also with same error. Can this be resolved with having to quit & restart Access?

Thirdly, I put a breakpoint on Form's Error Event but this doesn't seem to always to catch all errors. It does catch error if I tried to start up a form without the connection, but if it already has been started, and the connection was broken, the Error Event is never fired even though I get a dialog saying ODBC Call failed, then a zillion of dialogs saying Object no longer set or invalid. This would be extremely annoying to my end users.

Can any of those be avoided or fixed?

View Replies


ADVERTISEMENT

Access, Protect Tables

Aug 27, 2005

How I can protect the tables in a database and force the users to access them only through 'forms'. In other words the user will not be able to view or change the data in any table except through a form, when loading a form, the protection is diabled.
I need a total solution, I am not a powerful programmer. :confused:

View 2 Replies View Related

How To Protect Access Database

Feb 15, 2013

1. How to protect my access database. That is can i only let my boss to use ONLY and not see the struture / table relationship?

2. That i can use access table to call file form my computer desktop outside folder. Can i set the limit time for outside folder?(for example 3 days, after 3 days then the folder will damage or not exist? can i do that?

3. can i set the password and after some days(for example 2days). they cannot go into my access database?

4. can i make my access database only for use only, cannot copy and can i set the life time for my access database (for example maybe 2 days,
the access database cannot open. )

View 4 Replies View Related

General :: Possible To Password Protect Access To Source Code?

Jun 10, 2012

I've been working on a large project for my employer for a year now (but software development isn't part of my normal day to day duties). Most of the work (around 70%) has been done in my own time at home. The company were going to buy a system that would be customized by developers at a cost of around $60,000. I've developed a solution that is probably better than what they would have got. At my last appraisal my boss said that it had been discussed that i would be rewarded if i delivered it. My question is:

Is it possible to password protect access to the source code? I'm working with Access 2003 just now. I know I can create a .mde file to prevent access to the source code but that would make further development difficult. e.

View 8 Replies View Related

Access And ODBC

Aug 8, 2006

I am having a problem with an access database that is connecting to a sql server. When trying to run any queries it is very slow. I think the problem might be caused by the ODBC link and I was wondering if there are any alternatives to using ODBC to connect access and sql.

View 5 Replies View Related

MS Access ODBC Connections

Feb 28, 2007

Hello all, is there a way to change an ODBC connection in MS Access. I have 4 ODBC connections that I can choose from (all of them from the same server), and instead of manually recreating a new ODBC connection everytime, I would like to point it to the new connection. The ODBC connections (Tables) have the same information, but throughout different times during the month.

Thanks in advance for your help.

View 14 Replies View Related

ODBC Access Update

Apr 8, 2008

Used to use these forums quite regularly and always found people to be of help, even started chipping in occasionally with the odd pearl myself :rolleyes:

Anyhow, having forgotten my username i'm back under a different guise and have a problem that i'd like some help with.

My company has a website running asp (not .NET) with an sql database backend. Basically we want a localised system to deal with order processing with daily updates to customer, order tables etc. I started to build something in VB and SQL but time is critical and once I work out this problem I can churn something out in access double quick time.

I can get the ODBC connection open to the sql database and import the data to Access 2007 table (ie dbo_tblOrders), but I then need to find/write some code to fetch extra records daily and append them to the EXISTING tables. At present data is fetched and added to a new table. Is it merge queries I need? If so how, and can I set it to only fetch new records?

View 11 Replies View Related

Do Access Database Need ODBC ?

Sep 19, 2007

Hi ,
I need to link some pages in my site to Access do I need to create ODBC for the connection ....

View 2 Replies View Related

Import Into Access Tables Using ODBC

Nov 28, 2006

Hi,

I want to import into an MDB table a csv file.

I'm trying to use the bulk copy table.

my function is:

SQL = "SELECT * INTO [my_table] FROM [ODBC;Driver=Micrsoft text driver (*.txt; *csv) ;Dbq=c:\;Extensions=asc,csv,tab,txt;].table.csv"

db.OpenEx( "Driver=Microsoft Access Driver .mdb);DBQ=c:\access.mdb;", CDatabase::noOdbcDialog );

db.ExecuteSQL( SQL );

when i run this function i get an error : "You cannot use ODBC to import from, export to, or link an external Microsoft Jet or ISAM database table to your database"

when i try to import in the same way a dbf file (insted the csv file) with VFP it's working well.

what seems to be the problem? how can i fix it? or if some one know how can i import a large csv file into access DB in an efficient diffrent way?

thanks ishay

View 2 Replies View Related

Moving Report In ODBC To New Access DB

Jun 7, 2006

I've moved tons of text files or Excel files into Access DB's but I need to take an ODBC report and put it into a table on a new Access DB. If I save the report as a text file I get boxes when I import it to the new DB. If I use Excel I have to make a new table each time. Can anyone suggest the simplest way to take an ODBC report and put it into an Access table. THanks

View 1 Replies View Related

Access Crashes Connecting To Odbc

Aug 16, 2006

I've just set up my Access on a new PC and now when I try to connect to my MySQL database through odbc, Access crashes without any error messages, just the standard microsoft error reporting message.

I'm using Office 2003. What do I do??

View 1 Replies View Related

Access 2003 ODBC Widows Not Opening

Apr 28, 2007

Hi m8

I have Microsoft Access 2003 which is running fine. I have setup ODBC source through windows xp Professional control panel.

While i am in access application and try to open by selecting
File/Get External Data/Link Tables

It open Link PopUp Window, then from the Files of type drop down, I select ODBC Database(). Windows just disppear, not opening odbc source selection
window.

Please could you help me, why this is happening and sort it out.


Many thank

View 1 Replies View Related

ODBC MS Access Driver Error - Urgent

Nov 7, 2005

Please help...

Database Results Error
[Microsoft][ODBC Microsoft Access Driver]
General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xcac Thread 0xcc0 DBC 0x1090064 Jet'.

The code: example.asp
Code:<%fp_sQry="SELECT count(*) FROM TEVPDATA where ((datediff('d', '" & date() & "', DT3PROF1) between 0 and 30)) and (COL2 = 'PROF1/SLM')"fp_sDefault=""fp_sNoRecords="<tr><td colspan=1 align=left width=""100%"">No records returned.</td></tr>"fp_sDataConn="Fabos"fp_iMaxRecords=0fp_iCommandType=1fp_iPageSize=0fp_fTableFormat=Truefp_fMenuFormat=Falsefp_sMenuChoice=""fp_sMenuValue=""fp_iDisplayCols=1fp_fCustomQuery=TrueBOTID=1fp_iRegion=BOTID%>

Global.asa:
Code:'--Project Data ConnectionApplication("Fabos_ConnectionString") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=data/Fabos.mdb"FrontPage_UrlVars(4) = "Fabos_ConnectionString"Application("Fabos_ConnectionTimeout") = 15Application("Fabos_CommandTimeout") = 30Application("Fabos_CursorLocation") = 3Application("Fabos_RuntimeUserName") = ""Application("Fabos_RuntimePassword") = ""

View 1 Replies View Related

Access, Required Fields, Forms & ODBC

Jan 28, 2008

I am working on an Access 2002 database where one of the tables has five required fields making up the key.

There is a form that is linked to this table which is used for adding new records.

There is a close button on this form that has the following code in it's OnClose event:

"DoCmd.close"

When the form is opened, no data entered and then the close button is clicked - nothing happens.

It used to work fine, until I recently upsized the database into a SQL Server database and now it's all gone horribly wrong.

If I close the form manually by clicking on the cross, I get this
error:

[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value
NULL into column 'Product', table
'LeasebookSQL.leasebook_user.leases'; column does not allow nulls. INSERT fails. (#515) [Microsoft][ODBC SQL Server Driver][SQL Server] The statement has been terminated. (#3621)

Can anyone please tell me how I can get the form to close without trying to save the record, especially when no changes have been made to the data on the form?


Thanks,


Simon

View 7 Replies View Related

General :: Access Runtime And ODBC Connection Can't Get It To Work?

Aug 31, 2012

I have a Access front end connected to a MS SQL database using a ODBC connection which is working fine of course.

When I compile it as a runtime version and install it on the business computer I get an error with the ODBC connection (I can't remember exactly what pops up). On the business computer I have installed SQL Native Client and in the ODBC added a System DSN (which works).

View 12 Replies View Related

General :: MS Access Reading Data From ODBC Connection

Feb 10, 2015

I am in need of consultation for MS Access reading data from ODBC connection. I have SQL Server that has all the data for the project financials etc.

I need a database that will read only certain data from the tables, for example, I don't need to import all 500,000 lines from SQL through ODBC connection, I just want to bring certain data for a list of projects whichever are opened and load only that data in MS Access so the group then can add additional details for that project in a shared MS Access.

Right now, all I can do is connect to that database through ODBC and brings all the data which I don't need all as it increases the size of the database, but just a criteria to specify which data to bring, if that's possible to do.

View 1 Replies View Related

General :: Cannot Use ODBC To Import From / Export To / Or Link To External Microsoft Access

Mar 16, 2014

I am trying to create an ODBC link to a copy of the Northwind data base.I am running Win7 on a 64 bit operating system but am keeping office running as 32 bit for Access, Excel , Visio etc due to the fact that I have a lot of old apps tied to them.

When I attempted initially to create a new system DSN ODBC connection it only allowed me to use SQL drivers. (No plurry good) So after some searching I found out that I could use a file in C:WindowsSysWOW64 called "odbcad32.exe" which has allowed me to view /use the total list of drivers to import data.So I can set up a DNS ODBC named Northwind1 and I can access the database without problems using Excel.However if I try to use the same ODBC link in Access to connect to Northwind1 I get the following error message:"You cannot use ODBC to import from export to, or link an external ?Microsoft Access or ISAM database table to your database".

View 2 Replies View Related

Protect Data

May 9, 2006

i have a users table where i save usernames and paswords. So anyone who has access to the users table and has little know how of access can read the passwords of other users. So I have encrypted these passwords. Now no one can read eachothes passwords but if someone has acess to the database he can copy his encrypted password to someone else's password and login using other people's account.

Any solution ????

View 1 Replies View Related

Can I Password Protect....

Dec 7, 2006

one form in my database?

I would like to put a password on one form; all other forms are open to see.

Can this be done?

View 1 Replies View Related

Protect Database Against Corruption?

May 25, 2005

I have a split database. BE located at a server and FE on each users workstation. There are 8 concurrent users at the most. This runs smoothly over the LAN.

Now I'm adding a new feature to the database. I'm using a wheel loader to weigh products on a weight scale. The operator in the wheel loader is going to use a laptop with wireless LAN to connect to the network.

In risk of loosing the connection which in worst case might corrupt the database, I want to make a new database with a BE/FE setup. The BE will be placed on the same server as the current db. The FE in the wheel loader. I can then link from the current db (BE) to the new db (BE).The new db will only require two linked tables from the current db.

If worst case happens, would my current db be more protected against corruption than if I linked directly to the BE on the current db. I know there's no 'right answer' to this one, but I'd really like some opinions on it though.

Thanks in advance.

View 5 Replies View Related

Password Protect Backend

Jun 17, 2005

I have an Access 2000 split into FE and BE and the client has requested the BE be password protected. I attempt set database password on BE but then when I open FE I get error msg " not a valid password". I get the same error message if FE has same password or if FE has no password.
Any ideas?

Thanks,

Jim

View 3 Replies View Related

Is There A Way To Protect Shortcut On Desktop ?

Dec 6, 2005

Hello,I need to know is there any way to protect a shortcut on desktop ?Bcz someone is deleting (I dont know by mistake or intentionally) shortcut of database shortcut. I thinking about its protection from deletion only unless you have to supply a password or code something like that.Any idea..?With kind regards,Ashfaque

View 1 Replies View Related

Password Protect VBA Code

Sep 19, 2006

Hi,

Is the password property in Access secure enough to protect VBA code?

Regards,
B

View 14 Replies View Related

Password Protect A Form?

Aug 28, 2007

Hi

i am wondering if it is possible to password protect a form?

I am building a DB which will hold personal information, all this info will be held in a table and displayed on a form, but I would like it so that the user has to enter their user name and password and only the form which relates to their details opens ( so like an open form and display specific field but passworded)

Any ideas?

View 3 Replies View Related

Password Protect A Table?

Dec 2, 2004

hi,

Is it possible to password Protect a table in Access 97?

I need to limit who can actually go into the raw data table as even though it is hidden, a user can easily unhide if they knew how.

any ideas?

View 3 Replies View Related

Password Protect A Form

Jan 25, 2005

Is there a way to password protect a form.

This is due to me having to send a mdb file, because i use A97 and the other end use A2000.

I tried sending the mde file but they could not convert it etc.

But i want to stop them getting into the code, you know how protective we are.

I want to hard code the password if thats any help.

Could some one please help me, thanks

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved