Best Way To Connect To BE Database

Oct 29, 2007

Hello my helpfull friends,

I am going to build a multi-user database with the tables en queries stored on a server. So I will deploy multiple front ends.

Here is my question:

What is the best way to connect to the BE?
Should I link the backend using the linkingmanager (bound to a recordset) of access 2007

OR

should I interact with the data in the backend using undbound form using a disconnected recordset

OR using SQL

I would prefer the first option because it's the easiest way.

But what do you guys (and girls) recommend?

View Replies


ADVERTISEMENT

Modules & VBA :: How To Connect To A BE Database

Dec 11, 2013

Access 2007, split database, 9 users. I have been able to link the BE tables with the Linked Table Manager. I use the DNS name path because everyone has different drive mappings. I can open my linked tables as a RecordSet and AddNew and Update records. However, I cannot Seek and Edit the linked tables. I understand that I need to open the BE tables directly in order to do this. Now, I can do a connection like this, and it works for me:

Dim dbs As DAO.Database
Set dbs = DBEngine.OpenDatabase("R:DataTask_be.accdb")

But, as I said, everyone has different drive mappings. Therefore, I need to use the Network address instead of a drive letter. I tried this:

Set dbs = DBEngine.OpenDatabase("ServerMyBackEndDataTas k_be.accdb").

View 3 Replies View Related

Connect Program To Database Backend

Jun 16, 2005

Hey guys... I created a reaaaally simple wages calculation program some time ago in VB6. When you click the save button, the records are saved to a .txt file stored in the same directoy as the program itself.

However, I'd like to take this a step further and connect this program with some tables setup in an Access database. I know this has something to do with ADO, right? But not quite sure how to set this up..

Would it be possible to get some guidance on this? If you'd like to see the program, let me know.

Thanks for any input!

View 11 Replies View Related

ASP Code To Connect To A MS Access Database

Apr 17, 2006

Hi there,
Thank you for this great site, and a special thanks to all persons here who are giving a big help to newbees as me.
here is my prob:
I have set up some few ASP pages using dreamweaver 8 in wich I put some forms to collect data from users (actually I'm recruting subjects for a scientific research) and teste them on my local host using IIS server and access 2000 database. all things work correctly. My strconnection in my local machin is as follow:
Code:<%' FileName="Connection_ado_conn_string.htm"' Type="ADO" ' DesigntimeType="ADO"' HTTP="true"' Catalog=""' Schema=""MM_connsujets_STRING = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:InetpubwwwrootSujetsRecdbRecruSujets .mdb; Persist Security Info=False"%>
I have found a site (http://www.asphost4free.com) wich host free asp pages. I uploaded my pages but the connection to the data base is no longer working. the host site give this sample of code to get to connect to the data base:
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
strConnection = "DRIVER=Microsoft Access Driver(*.mdb);DBQ=" & Server.MapPath("/USERNAME/db/yourdatabase.mdb")
oConn.Open(strConnection)
....
...
oConn.Close
I have follwed it and I have changed the username and the database name with mine but I can't figure out what to put to replace the .... after oConn.open. I git error this error when I have tryed to connect:
Microsoft VBScript runtime error '800a01a8'

Object required: 'oConn'

/kin2006/Connections/connsujets.asp, line 11

I deleted the oconn but it doesn't help I have tryed many other combination without any success.
Any clue!!
thanks in advance

View 2 Replies View Related

Connect An Access Project With A Remote MDB Or SQL Server Database

Jan 28, 2007

Hi,

I am finishing an Access database for a customer that may want, in a later stage, to have a website(probably ASP) that would connect on the same database. Is that possible? I mean can an Access project on a pc connect to remote database(mdb or SQL server) used by the website?

If so can you give me some quick steps to do so or a good article on it?

Thanks.

View 6 Replies View Related

Connect Ur Landline Phone To Access Database.. TAPI

Mar 30, 2007

http://www.rainyjay.com/tapi/tapi.htm

we have a tapi enabled phone and i want to connect it to my pc and allow it to talk freely to my database..

eg.. a customer calls up.. if their phone number exists then display their details in access..

if it doesnt exist then open a new form which lets you add a customer.. etc

anyone had any experience in linking phones to access databases

View 1 Replies View Related

Modules & VBA :: Connect Access Database With Softphone - Dial Through VOIP PBX

Oct 11, 2014

Is there a way to connect access database with a softphone? I have an IP PBX and a soft phone and i need to click on a form and auto dial the contact. My DB contains all the data I need and also PBX.

PBX running asterisk software.

Do i need a module or something like TAPI that call windows dialer (but win dialer use a modem and not Ip phone I guess)..Or something that just wake up voip softphone and paste data?

View 2 Replies View Related

Modules & VBA :: Check For Specific Version Of A Ribbon To Connect To Database?

Sep 2, 2014

I have been trying to come up with a solution for a problem I am having for a while to no avail. We have a backend database that stores various tables full of data. We then have a custom Excel Ribbon that connects to the database and pulls in the different tables depending on the user selection form the ribbon. Everything is working well on that end. The problem I am running into though is that in the development phase of the ribbon and database we had multiple versions and so there are still some people who are using old versions of the ribbon and therefore not connecting properly to the database. Is there some type of code I can add into the database and ribbon where it checks for a specific version to ensure the user is using the most recent version?

Basically, before any type of query is run to connect to the database the ribbon would have some sort of label on it somewhere and the database would check for that label and if it is correct, the code proceeds and if not a message box appears that tells the user they are not using the most current version of the ribbon and exits the sub?

View 5 Replies View Related

How To Connect??

Apr 14, 2006

what options do i have to connect to my database if back end of my db is in newyork and front end is in washington. how do i connect to my db??

View 1 Replies View Related

Why Can't I Connect To The DB In This Manor?

Mar 9, 2006

I tried referencing a table in my Access DB that held my login id and password info but it didn't work. How can I make it work?

ODBC;DSN=DB2Q;UID=[Table].[UserID];PWD=[Table].[Password];MODE=SHARE;DBALIAS=DB2Q;DISABLEKEYSETCURSOR=1;DIS ABLEUNICODE=1;IGNOREWARNINGS=1;

View 8 Replies View Related

How Can I Connect Two Forms Together

Dec 6, 2005

Hi all,

I'm designing a db in which I have a list of teacher names, and for each record (each teacher), there is a list of subject that this teacher teaches.

what i did is the following:

I have designed a form with teacher name, and a form for subjects.

I have added a button in the teacher form, next to each teacher name, this button we take the user to the subjects form to add the subjects for this particular teacher.

To link these to form, I have added the primary key of the teacher table (TeacherID) in the subjects table, so the relationship is one-to-many.
but I couldn't get to connect them.

I want the subject form to get the TeacherID from the teacher form to connect each teacher with his subjects. How can I do that?

Any help will be very much appreciated.

Best Regards,
CS.

View 3 Replies View Related

How (if At All) Can I Connect To *.DB Files?

Oct 3, 2005

Hi
I use an application called FIZZ which is a Sensory Analysis program (works with statistics etc.). This application uses files with the extension *.DB and I was wondering if it is possible to connect access to this kind of file? These file are basically tables...
Thanx for the help

View 5 Replies View Related

Connect To Access DB With ASP

Aug 20, 2006

Hi All,

I am new to ASP, so bare with me. I am trying to connect to a database with ASP thats on an online server. I am recieving the following error:

Code:Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x1018 DBC 0x99aa314 Jet'. database/test.asp, line 15

Here is my file name "test.asp"

Code:<html><head><title>My First ASP Page</title></head><body bgcolor="white" text="black"><% 'Dimension variablesDim adoCon 'Holds the Database Connection ObjectDim rsGuestbook 'Holds the recordset for the records in the databaseDim strSQL 'Holds the SQL query to query the database 'Create an ADO connection objectSet adoCon = Server.CreateObject("ADODB.Connection") 'Set an active connection to the Connection object using a DSN-less connectionadoCon.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath( "/database/atosdba.mdb" ) & ";" 'Create an ADO recordset objectSet rsGuestbook = Server.CreateObject("ADODB.Recordset")'Initialise the strSQL variable with an SQL statement to query the databasestrSQL = "SELECT Elements_list.Sys_id, Elements_list.Element_Name FROM Elements_list; "'Open the recordset with the SQL query rsGuestbook.Open strSQL, adoCon'Loop through the recordsetDo While not rsGuestbook.EOF 'Write the HTML to display the current record in the recordset Response.Write ("<br>") Response.Write (rsGuestbook("Elements_list.Sys_id")) Response.Write ("<br>") Response.Write (rsGuestbook("Elements_list.Element_Name")) Response.Write ("<br>") 'Move to the next record in the recordset rsGuestbook.MoveNextLoop'Reset server objectsrsGuestbook.CloseSet rsGuestbook = NothingSet adoCon = Nothing%>



As i said, I am new and might be missing something simple.

Thanks for the help.

Bones

View 2 Replies View Related

How To Connect Access97 With ExcelXP??

Nov 28, 2005

Hi All,

I've been working on many other domains but very new to Access world. Anyway,coming to the point.I have a database built on Access and the reporting is being done on Excel.Till now,there is no connection between both.Users are doing copy/paste procedure for reporting in excel.i tried to connect both and get the data directly in to excel with out copy/paste procedure(i.e., just by refreshing the excel sheet would do). But when i create an ODBC connection between them, it says that the required permissions are not given to you by the administrator.I'm trying to create a file DSN.so,can anyone tell me what exactly i need for this?is it the admin rights of access database (or) the admin rights of the folder where the mdb file is located?little confused on this.I already have the admin rights on the folder where the mdb file is located but still getting the error.admin rights of the datasbe cannot be given because no one knows the password of administrator ID of Access database(little funny but it is the fact!)

can anyone please let me know how can i get through this problem as this would be the crucial thing for this project.

Regards,
Ravindra

View 1 Replies View Related

Connect To A Text File (.txt)

Dec 19, 2006

Hello,

Is it possible to connect to a text file via ODBC with an Access database. I have tried with a pass thrrough query but I get an error stating you can not use ODBC to link to an external Microsoft Jet or ISAM database table. I know I could import the file but this would put my database way over the 2 gig limit.

View 9 Replies View Related

How To Connect Form / Combobox

Aug 6, 2006

We are struggling with the following thing. We already tried to explain it in this thread (http://www.access-programmers.co.uk/forums/showthread.php?t=111533) but we still don't get it :(.

We have a table, named "Tblapa".
This table contains: ID, UK, Area, Tf, Tt and Number

We have made a query, named "Qrychoosearea"
This query gets his input from the "Tblapa"
(and thus, the query results in: Area, UK, Tf, Tt and Number)

Now we would like to make a form, named "FrmArea" with a combobox.
This combobox lets people choose an Area of their interest out of the list of given Areas. Then they have the press an "OK" button

Upon clicking on the "OK" box we want to generate a REPORT based only on that specific Area (and the related UK, Tf, Tt and Number ofcourse) and thus not showing all Areas.

How do we have to do that?
As we are just beginners in Access and have no feeling for VBA (yet), a detailed explanation or a link to a website who explains how to do this (with images or so) would be much appreciated.

Greetz,
Math

View 10 Replies View Related

Connect Rate With Description.

Feb 10, 2005

I was wondering if it would be possible to type in a description eg.(Days, nights, O.T.,ect.) and have excell automatically insert the rate I specify into another cell.

View 1 Replies View Related

Help ASP Newbie Connect To Access Db Please

Nov 30, 2006

Hi

I'm new to ASP and I need to connect my webpages to an Access database I have created. I would do this in dreamweaver normally but I'm having trouble using the custom connection string function to do this. So I was hoping someone could explain how I would do this by coding it instead.
The code my web host provide to connect to a database is below. If someone could explain to me how I would use this to connect to a database, I would be very grateful. Thanks.
Quote: Dim oConn, sConnection

Set oConn = Server.CreateObject("ADODB.Connection")
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:sitesSingle??UserNamedatabasedata.md b;" & _
"Persist Security Info=False"
oConn.Open(sConnection)

oConn.Close
Set oConn = nothing

View 3 Replies View Related

Modules & VBA :: Connect To Mdb From Accdb

Oct 20, 2013

I am trying to connect to an access database format 2003 from my access 2007 database. I would like to create a recordset from a table in the 2003 database and bind it to a listbox in my 2007 database.I tried to the following code that didn't work.

Code:
Dim DNHConn As ADODB.Connection
Dim Rs As ADODB.Recordset
Dim connStr, xSource, xSys, xUsr, xPsw
On Error GoTo errH

[code]....

When I try to execute that code, I get an error that the apllication can't start because the worgroup file is either missing or opened exclusive by another user.

View 2 Replies View Related

Connect A Listbox To A Table/query?

Sep 25, 2006

I have a table of customers and have table of stuff they can buy. Those two tables I use in the next table where their ordes get registred. I have and order form where I have a listbox. When I create a new order I want to have the customersname in a listbox but I want the customersID(primary key) returned in order table. How do I do that? :confused:

View 1 Replies View Related

General :: Sync Tables When Connect To LAN

Nov 24, 2012

I want to make a database on my company server. There will be two tables. "Customers", and "Visit to customers".

There are 5 sales managers in my company and i want them to collect information about customers on the field.

My question is:

How to sync Customers and Visit tables from laptops with Customers and Visit tables on the server?

Can i do it over internet or i can make a button that will sync tables when sales managers come to the office and connect to lan?

View 10 Replies View Related

Modules & VBA :: Connect To MySQL Via ODBC

Jan 24, 2014

I've developed an Acc2003 App that reads from a ODBC linked table.This link was created fro DBwindow->Link table. It often opens a window asking for userNmae and Pwd - I wold liek to aviod this wen distributing the App. So I wrote tis code:

Code:
Public Sub linkOdbcTable(DataSource As String, UID As String, PWD As String, dbName As String, ParamArray Tables())
Dim dbs As Database
Dim tbl As Variant
Dim rst As DAO.Recordset
Dim linked As Boolean
Dim ConnectionString As String

[code]....

View 6 Replies View Related

Connect Between Entry And Text Box Fields

Oct 28, 2013

I have a form that has a 3 column: ID, first name and last name.

And I also have a table that have a same column (ID, first name and last name).

I want that when i write the ID, access fill the first name and last name fields in a right data - the first and last names of ID entry

Example:
if my table like that:
ID
last name
first name

13456
Elen
Miki

When I write in form in ID text box: 123456, in last name field appear Elen and in first name appear Miki.

View 9 Replies View Related

Connect To SQL Server From MS Access 2010 Through DAO

Nov 15, 2013

I have a code which connects to sql server using DAO. I would like to know is that do my system require sql server native client installed to run this code? or what software needs to be installed to have this code works for me?

View 1 Replies View Related

Connect MS Access With Fiscal Printer

Feb 12, 2012

I had made MS Access application for a company.

After a while they asked me to connect that application with fiscal printer.

I don't know how to do that.

View 2 Replies View Related

Trying To Connect Automatically To SQL Server When I Open A Form

Nov 22, 2005

Hi all

I'm making an Access front-end for an existing app based (I think) on SQL Server 2000. (The Access thing makes labels... the "label wizard" supplied with the SQL Server program isn't very good.)

I can use it fine, but eventually it's going to be used by non-techie people. As it uses linked tables, when you first run it you get a message box similar to this popping up:

http://www.rainjam.com/images/login.jpg

On some machines it tries to create a trusted connection automatically, and fails, and then gives you this box with "Use Trusted Connection" ticked - thus making it even harder for people to use.

Ideally I don't want anyone to have to bother with this. Is it possible to put something into the form's OnOpen event that passes the server, database, user & password details to SQL Server, so it all happens invisibly? I've already tried creating a file DSN on the machine it'll be used on (doesn't seem to do much) and also putting this code in:

Set objConn = New ADODB.Connection
objConn.ConnectionString = "Driver={SQL Server};Server=[server];Database=[db];Uid=[blah];Pwd=[blah];"
objConn.Open

(I must admit this was a bit of a stab in the dark... it didn't work anyway)

I also found this thread (http://www.access-programmers.co.uk/forums/showthread.php?t=50449) and tried the code but it didn't seem to work (got one of those "You entered an OnOpen expression that can't be evaluated"-type errors).

Finally... I briefly investigated redoing this whole thing as an Access Project, but haven't ever used them before and don't really have the time to learn!

Any tips would be really, really gratefully received...

Cheers

Nick

View 2 Replies View Related







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