Database Connection - Noob Question

Jul 26, 2005

Hi,

I apologize first of all if this question is bounced up and down through out the forum all the time, and if there's already a topic on this, then it'd be perfect for me. But im not having any luck.

I do not know how to upload my database in a way that it will work when i try to use a page through microsoft frontpage to display results from it.

What are the accurate steps into creating a database connection? Thanks a bunch

View Replies


ADVERTISEMENT

Database Connection Prompt

Sep 30, 2005

I have a combo box that is populated by a query. The problem is that the query pulls data from a different database than the rest of the form and it prompts the user for a password to access this database.
Is there any way of coding the password into the form so that the connection to the database is opened automatically without prompting the user?
Thanks.

View 4 Replies View Related

DNS Less Database Connection Trouble

Dec 25, 2004

I'm trying to use a banner ads .asp program called Admentor.
My problem is that this uses DNS less connection and I can't get this working on both the pages showing the ads and the admin panel.

I know it's the path to the database that causes this.
If I change this to suite the webpages showing ads, it work's, and if I modify it to suite the admin panel it work's.
But not both at the same time.

Should'nt this path be relative to the sites root ?


g_Admentor_strConnect = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("../ads/admentor/ad97.mdb")


when using this string, the webpages showing banners is working, but when clicking on these, the site calles a redirect .asp page that also uses this database connection. Then it fails, since this page is located in another folder in the site and therefore also gets another path to the database.

How can I get this to be a relative path working on all pages not been worried about folders, subfolders and correct paths to the base ???



Best regards
Ketil Leinum
Norway

View 1 Replies View Related

Database Connection Problem

May 9, 2005

hi, below are the codings i input.
I just cannot get the connection to open. error is at "objConn.open"
I have also given the user full access right. folder attribute however, always reverts back to "read-only" whenever i try to turn "read-only" off.
Please help!

Set objConn = Server.CreateObject("ADODB.Connection")
Set objRs = Server.CreateObject("ADODB.Recordset")

objConn.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source="& server.MapPath("db.mdb")


objConn.Open


sql = "Select * From tblReceipt"

objRs.CursorLocation = 3
objRs.CursorType = 3

objRs.ActiveConnection = objConn

objRs.source = sql
objRs.open

View 1 Replies View Related

Beginner ASP Need Database Connection Help

May 1, 2007

Hi, I went to school over 4 years ago learning ASP but I forgot almost everything.

I am able to setup a connection to a an Ms Access file and get information using Windowx XP's IIS.

I need to change the code where the location of the Access file is on my computer to my webhost.

In other words, I have uploaded all the pages and the Access db file but now the pages can't find the Access db because the file was original on my computer in a certain folder. Now that it is uploaded, I need to change the location where it searches for the db from my computer to my webhost.

I have not dealt with ASP for almost 5 years ago.

Please give advice, or websites or 3rd party programs that can do this for me.

I am trying to build a webiste where you enter the username and login then be able to retrieve information or update, or add new or delete from the Access db.

This should be a simple problem for most you professionals out there.

View 2 Replies View Related

Store ODBC Connection With Database

Mar 9, 2007

Really don't know the answer to this question and I thought I'd come to the experts. I have created an Access database that I use to push & pull data from an SQL database through linked tables. I created an ODBC connection on my PC and set it so the links keep the username and password for the ODBC connection. All that works great...Now my question - Is it possible to somehow "store" the ODBC connection within the Access database so that I don't have to go to every PC that is going to be running this database and create an ODBC connection? The Access database and the SQL database both exist on our network and all those that will be using it have access to both. If someone has the answer I would really appreciate it.

Thanks

View 8 Replies View Related

Database Connection Info And Driver

Nov 24, 2004

Hey,

Im doing a login page for my website, and i am having trouble connecting to the DB:

'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)};uid=;pwd=letmein; DBQ=" & Server.MapPath(strAccessDB)

where strAccessDB = "cs334-45/Kosy/Kosy.mdb"

cs334-45 is my computer name in the virtual directory.


Im getting this error:

Server.MapPath(), ASP 0172 (0x80004005)
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
/Kosy/check_user.asp, line 21

I dont understand. I thought that the virtual directory was mapped to the physical directory
anyway? So why do I have to enter a virtual path?

View 1 Replies View Related

Split Database Persistent Connection

Jul 6, 2015

Using Access 2013.

We have split a database and have about 6 users connected to a gigabit switch. There is a noticeable delay of about 5 to 15 seconds when we search by an account name. We are working with a split form, where it has the database records listed at the bottom half of the screen.

Is there a way to improve the performance? I tried a persistent connection, but it didn't seem to work and would occasionally get an error message.

View 9 Replies View Related

Error Establishing Connection With MS Access Database!!

Apr 9, 2006

hi guys,
this is my first thread on this forum...,, i am new out here..

i am not able to establish a connection with a MS Access database. I am using DSN Connection for it..

The error that i am getting is...//

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
/airtickets/scripts/dbconn.asp, line 4

please help...??

View 2 Replies View Related

General :: Closing ODBC Connection To Database

Nov 18, 2012

I have a back end 2002 DB. I would like to disallow access to this through odbc connection. Is there some way this can be achieved? Thie directory where it is located is unfortnately cannot be restricted as the front end mde also resides there.

View 1 Replies View Related

Modules & VBA :: Automatically Linking Database With ODBC Connection

Jun 26, 2015

I am looking to automate the process of linking my Access DB with an ODBC connection to an SQL DB with VBA (unless there's an easier way to do it?) - some sample code - if this is possible at all?

View 2 Replies View Related

How To Get Correct Records Through Odbc Connection To Oracle Database

Jan 10, 2013

we have Oracle 11g as main database and for viewing purpose, we have created an mdb (Access 2007) using Link tables via ODBC connection (system DSN).While querying, count queries are working fine with accurate record counts but, all select queries are not working fine. It filters and displays with wrong records. There is no issue in query building.how to get correct records through odbc connection to Oracle database.

View 3 Replies View Related

How To Establish The Connection Between Ms-Access2000 & Oracle Using DAO Connection?

Sep 26, 2005

Dear Guys,
How to Establish the connection between Ms-Access2000 & Oracle using DAO Connection through Code?.

I created one table in Oracle and I created User-DSN in ODBC.
I linked that oracle table into Ms-Access MDB using Link table option in ms-Access.

Now, Whenever I open that mdb, we need to establish the ODBC connectivity automatically through code (I mean, we need to refresh automatically).

I need to hardcode all the information in the Ms-Access code.

My User DSN Name: abcd
Oracle Database Name: abcd
Schema Name(User Name): abcd
password: abcd

View 1 Replies View Related

Modules & VBA :: Refresh Linked Tables When Connection Lost Without Closing Access Database

Sep 4, 2014

I have MDB database linked to SQL SERVER through VPN connection.I created links to the sql server Links are dsnless..Everything works fine but when I lost VPN connection or sql connection has been broken I can't refresh links to the tables.I receive message 3146 sql connection failed..I must close database and start again...

I tried different methods like ado,dao, and vba docmd.transferdatabase,aclink... but no success, table cant be relinked.

Only way I can relink is to change ip adress in conn.string

E.g. 192.124.0.2 (1st ip- router server ip) and after connection failed i can use 192.124.0.32 (2nd ip - server local ip) and that's it if i lost connection for the 3rd time... i must restart application.

It seems that access database keep the previous connection..how to reset or drop database connection to the sql server and refresh links to the tables with vba code without closing access database...

View 12 Replies View Related

DNS Connection --> DNSless Connection

Jan 9, 2005

Right Ok i hope i can get some help cause im absolutely stumped..
i cant get my login page to work since moving it from my PWS(iis on xp) DSN connection
to a 24/7 server on the net with DSNless connection
here is the code for the include file "conntopwd.asp"
http://www.pritchardwebdesign.pwp.blueyonder.co.uk/conntopwd.txt
the username and path has been changed slightly for security purposes,
and the code for the login page which attempts to access the database is here
http://www.pritchardwebdesign.pwp.blueyonder.co.uk/login.txt
the connection has been tested by one of the tech support guys at brinkster and he told me it was ok,
the problem was the way that the data is called from the data base is wrong ..
The tech support guy said that it was this line that was causing the problem..
MM_rsUser.ActiveConnection = MM_conntopwd_STRING
Any help would be much appreciated as im stuck for now..

View 2 Replies View Related

Please Help A Noob

Jun 7, 2005

Hey everyone,

I currently have an Excel Spreadsheet w/ 20 columns and 800+ rows. The columns are such things as Product, Product Code, Description, etc. It has clearly grown to big for an Excel file so I created an Access table from the spreadsheet called All.

Goal - have employees open a form and select a product from a dropdown box and then place check marks next to the info they would like to see for the product they chose.

I created a seperate table called Product, and a query for table All, and a report for the query. I created a form w/ a combo box that lists table Product and has a submit button. I added a criteria in the query under the column product that looks at this combobox. When you run the form, select a product, and click submit it opens a report that shows the results of the query for that product.

The part I cannot get is the check boxes that determine what columns are show in the report. I added a checkbox to my form and then went to my query and unchecked show and added a criteria to look at the checkbox in my form. All that did was erase the column from the query permanently.

I'm sure I'm going about this is the wrong way, but this is my first hack at Access and I'm trying to learn as I go.

thanks for any suggestions,
-Eric

View 5 Replies View Related

Help For A Noob!

Jan 29, 2006

a a aa a a a a a aa a a a

View 4 Replies View Related

Noob Needs Help

May 27, 2007

I'm a complete newbie to MS Access, and I'm working on my 2nd database.

Just a small and probably retarded issue: I have a table which includes a field, which contains four numbers. In a query I want my users to be able to enter a number, like 6, and the three numbers after that will have to be wildcards.

Example: The field has these entries:
8243
8184
6423

When the user enters "8", it should show the first two records. When the user enters "6", it should show the third record.

How can I accomplish this?

View 7 Replies View Related

Noob Needs Help

Dec 1, 2007

Hi Guys

i have created a table and am trying to run a qry that counts specific data, i have been searching but cannot find the answer. I have a standard qry that has the criteria of "staff name" and dates between ## And ##. Now when that information is returned, how do i get a count figure for the results. So for example if there were 15 entries for september it would say september = 15 (ish). I have been told to assign a recordset but no other information was forth coming. Can anybody help with code or qrys for creating a recordset.

Please remember the noob status when it comes to access - lol

Cheers Guys

Anthony

View 1 Replies View Related

Help A Noob

Feb 1, 2006

I have taken over the Access DB from Hell.....

Recently our system crashed and so I fixed compacted and repaired, and all seemed to be good to go. However, next day a bunch of random fields that our reps were once able to add information to are no longer able to add info to. They seemed to be locked out, however, I go into the various forms that were set up and enable is set to Yes, and Locked = No.

Any ideas?


This also effected a Check box field of 4 also.

Thnx for any help

View 1 Replies View Related

Sorry, Noob Needing Help..

Nov 19, 2006

Hope nobody minds but I don't really know Access and I have a table that needs sorting pretty desperately.I have a table with 5 columns that I need to filter out so just the remaing records are left over.http://img208.imageshack.us/img208/7328/untitled1wb8.th.jpg (http://img208.imageshack.us/my.php?image=untitled1wb8.jpg)The column 'fax' is the column with the records in it and the following columns need the record removing if the box is ticked.TimFPS, OurFPS, OnFPS, NeedsToBeFPS, however the column 'NumberWeHave' I'm not too sure about so I'll ignore it for now (I may need to take them out later)Sorry to be a complete noob and if anyone can help it will be muchos appreciated.

View 2 Replies View Related

Noob Question

Apr 10, 2007

I have this program that adds information to a ms database file in a very odd manner.i cant change the way the information comes in but is there a way to move it into the correct location in a new table. information is put in as a group of 19 records.

whats happening is this:
these are the colums
primary key,group id,info,info,info,group order,info,info,info

i need to information from 4 of the colums into a new table so i have 19 colums and 1 record.

is this even possible.

Frustrated net admin

View 1 Replies View Related

Must Be Simple But I Am A Noob

Nov 8, 2005

I am trying to make a query in which I want to get the data from the following:

i put in order ID number like this:

=(214)

and I successfully get the data from order id in data sheet view

but I want to get data from 214,220 and 200 at the same time how should i enter in the design view criteria field?

I tried =(214,220,200) but it did not work

thanks in advance

View 3 Replies View Related

Noob Question.

Apr 5, 2006

Hello im new to this and i been working since yesterday on a database. Basically I have 1 table that holds names and numbers asociated with and also the current state. that would be "ACTIVE" or "INACTIVE" and after a week or so (actually after i run a report) should change to "ACTIVE Z" and "INACTIVE X".

Now I have all the querrys and tables and forms and all. but what i want to do is to automate something im doing manually.

I run a querry that shows me only the records that have the state "ACTIVE" and i need to change them to "ACTIVE Z". Now what i am doing is, after running the querry i select all and go Control H and replace "ACTIVE" for "ACTIVE Z".

Is there any way to automate this.

cus i tryecd to do a macro that 1st open the querry and then executes the replace command but that just opens the replace pop up. I still have to tipe "ACTIVE" and "ACTIVE Z" in the fields to replace it.

Is there any way to automate this??

I would apreciate the help

THANK U

View 4 Replies View Related

Noob In Dire Need Of Help

Dec 10, 2007

As the title suggests i am brand new to Access (about 2 days). I am trying to create a query that will group the fields according to their names and then add the income for all orders for each individual customer. After that i simply have to sort them. I want to sum the total income per customer and put them into descending order.

Here's a small sample of the list to get the idea:

Customer NameIncome per Order
Sanchez, Cindy$1,326.00
Lizzack, Mark$1,326.00
Patel, Mitesh$1,092.00
Sanchez, Cindy$1,000.00
Patel, Maria$780.00
Mui, Sylvia$780.00
Patel, Mitesh$500.00


And what I'd like the results to be:

Customer NameIncome per Order
Sanchez, Cindy$2,326.00
Patel, Mitesh$1,592.00
Lizzack, Mark$1,326.00
Patel, Maria$780.00
Mui, Sylvia$780.00

Thanks immensely for any help you can offer. I realize there is probably a very simple solution to my question, but after 5 hours of searching the help button, and various online forums, I'm at my wits end.

View 3 Replies View Related

Noob Question!

Jan 5, 2006

Hi. I just started using databases and I am at a loss with some of the definitions. I could do with some help as these are part of my school work! Thanks.:D

What is the role of a 'form'

1.to hold data
2.to provide a 'form' format for reports
3.to provide a tool which sorts the data and prepares it for export
4.to provide a user-friendly data input 'front-end', which can additionally validate user input..

Thanks for any help....much appreciated:cool:

Jane

View 9 Replies View Related







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