Updating Multiple Tables In Ms Access And Asp

I have an query that gets value from two tables lets say tb1 and tb2. First i m tryin to insert values into tb1 and based on those values i have to update some already existing values in tb2. it gives me following error:

Provider for ODBC Drivers error '80004005'
Cannot update. Database or object is read-only

i know my cursur types are correct as i can update without any error with a single table. This leads me to wonder if updating multiple tables in access is possible?

View Replies


ADVERTISEMENT

Searching Multiple Memo Fields In Multiple Tables In Access

I have a search option on my website, which should perform a search on 4 fields, as follows:

tblNews
headline
content

tblDatabank
filename
description

It only needs to return matches which are an exact match of their search criteria. For instance, searching for "I am here" would return a record which contained "I am here", but not just "I" or "I am" etc.

I need to return all these records as part of one recordset preferably, as I want to be able to order them etc., though I imagine you may suggest I use an array somehow to merge two recordets etc., then reorder them?

View Replies View Related

SQL Server - Update/Insert Multiple Cols Into Multiple Tables

Just as the title says I am trying to do something impossible with a single SQL statement. I am doing an ASP webpage for internal use at the company I work for.

I want to know if there is a way to insert/update data into multiple tables in 1 SQL statement.

If it requires functions | views or anything else that is fine but I don't want to have 3-4 different SQL statements to update 2-3 different columns in different tables.

View Replies View Related

Updating Related Tables Via Webform

I have a MS Access database composed of a few related tables. I'm trying to link this with a website so that new data may be entered remotely via the website. I am using MS Frontpage, which has a simple wizard for this, but the wizard does not allow for updating multiple tables from the one web form. I have started learning ASP and VB, but all the books don't really discuss adding records to several related tables at one go. How do I do this?

Conceptually, I understand that you can't have a new record in the child table without a corresponding record in the parent record. It there a way of submitting several forms to the same record by 'indicating' which parent record each field is linked to? Is there a simple scripting code ? Any help or suggestion will be greatly appreciated, or just point me to where I might find the information I need?

View Replies View Related

Updating 2 Diff. SQL Tables From One ASP Page

I have one ASP page that has two separate FORMS, each that will update a separate SQL table. These tables are in the same DB with the same connection string for both.

The SQL statement seems to be writing correctly (when I test them) but neither of the tables updates when I try to update both of them. IF I try to update just ONE of the tables it does work correctly. Code:

View Replies View Related

Updating Multiple Records At Once

I have created a page that calls multiple records from an access database. I would like for the user to go through and update the data, press update and it updates to the database and returns to the same page.

this has been accomplished all bar one thing, it doesn’t update the database! What have I missed? Code:

View Replies View Related

Updating Multiple Records

I have a master/detail table configuration in a SQL database.Each record in the master table can have many records, which are stored in the details table.I need to create an update page that will allow the user to view, update or add new records within the details table that is associated to a master table record.

So, say I have 7 fields in the detail table and I'm pulling 20 records from the table that is associated to a specific master record. I would have 20 rows each with 7 columns that need to be updated or added to.

The columns contain dropdown menus,which will hold the value from each field in the detail table But,I also need to pull data from other tables that will hold the other values for the dropdown menus.

View Replies View Related

Updating Multiple Data

How do i update multiple records?I used to put the values in an array after splitting them.But what i noticed was , if there are values that are seperated with commas in the field value itself then it is taking the field value to be 2 in number.for eg:

if my field1 has value of abcd,defg and my field2 has value 123.When i update my field1 is updated with abcd and filed2 is updated with defg and so on? How can i overcome this?i want the values to be updated correctly into their respective field.

View Replies View Related

Updating Multiple Records Thru Checkbox

I need a code that will update multiple records on a list thru checkbox.

If the record is selected, the details that was updated on the selected
record will copy the same value as what is updated.

View Replies View Related

Multiple Tables?

Okay, I have a db that contains 1 table. it has some house info and stuff in it, but I want the updates and news and stuff on my site to be dynamic.

So should I make a new table inside my DB and use that alongside the house info table? What would be the best way to accomplish this, and if possible, do u have to set a recordset up for EACH table?

View Replies View Related

Updating Multiple Records Via Online Form

I have a database generated form that I would like users to be able to update by selecting a checkbox. Say the page displayed has six records on it and the user wants to delete one or more of the records. They would click the checkbox and hit a "delete" button.

Then the database would be updated and the user redirected back to the page that would now show all the records that weren't deleted. Sort of like Yahoo mail, you get a list of all the bulk mail, select the ones that you want to delete, hit a delete button, and the page is updated to show what e-mail is left. How do I do this using ASP?

View Replies View Related

Joining Multiple Tables

i have 3 tables how can i join these three tables using id_num primary key.

View Replies View Related

Querying Multiple Tables

I want to query multiple tables (all with exactly the same field names) and then display the records returned in date order.

I've written the SQL to query all the tables (they start with the same name, but end with sequential numbers), but it's returning no records when I know there should be some. Any ideas? Code:

View Replies View Related

Search Multiple Tables

i have a simple search page which i want to search mutiple tables with different layouts so i can return the search results in one recordset. how owuld i do this?

View Replies View Related

Update Multiple Tables

I have 3 tables
Employees,
nationalities,
Companies.

I can easily use a join to retrieve all the data I need from all three tables.Now my problem is updating those tables.I want to be able to update all three tables in one swoop. That is, how do I update all three tables with one update statement? Is this even possible?

View Replies View Related

Multiple Tables One Datalist

I am trying to create a datalist that pulls from table A. When the user clicks on one of the rows in table A I want it to expand under that row and show the data from table B (one to many relationship).

Im not sure what is the best way to accomplish this. Is there a way to use the selecteditemindex to insert a new datalist ?

View Replies View Related

Connecting To Multiple Tables

anyone in here got an idea on how to open multiple tables on a single asp page? what i did was put 2 record sets but the problem is only the first table was looping.

View Replies View Related

Update Multiple Tables

I havecracking my head to solve this problem. I am doing a project on Online form. But because the there is too much field for a table, i have to split it up into 3 tables. I need to know how to update the 3 tables simultaneously, when i submit the form.

View Replies View Related

Insert Into Multiple Tables

I need help inserting the same inormation in second table called "users"

' insert to customers table with retail type by default (admin can change to BtoB later with BackOffice)
mySQL="INSERT INTO customers (name, lastName, customerCompany, email, city, countryCode, phone, address, zip, password, state, stateCode, idCustomerType, active, user1, user2, user3, bonusPoints, idStore) VALUES ('" &pcustomerName& "','" &pLastName& "','" &pCustomerCompany& "','" &pemail& "','" &pcity& "', '" &pCountryCode& "','" &pPhone& "','" &pAddress& "','" &pZip& "','" &pPassword& "','" &pState& "','" &pStateCode& "',1," & pActive & ",'" &pUser1& "','" &pUser2& "','" &pUser3& "',0,"&pIdStore&")"

call updateDatabase(mySQL, rsTemp, "customerRegistrationExec")

View Replies View Related

Deleting From Multiple Tables

I am currently using this sql code to delete information about a league but how could I delete records from other tables and incorporate it into this sql code?

sql_insert = "DELETE FROM Leagues WHERE LeagueID=" & lid

View Replies View Related

Lookup In Multiple Tables

I just received a database schema from our dba and was given the task of doing a look up of several fields & then doing several specific tasks, depending on the information. I know how to do a lookup and an if statement for 1 table, but how do I handle a lookup in multiple tables and also do an if statement based on multiple tables?

For example, there would be a customerid, which is in the customer table; support is in the support table; and customertype in the type table.

View Replies View Related

Retreiving Data From Multiple Tables

I have 3 tables, product, industry and plist. product has productID and product, industry has industryID and industry, plist has productID foreign key with productID on product table and industryID foreign key with industryID on industry table.

In the plist table I am storing the productID and the industryID's that relate to that productID..

industryID productID
1 4
1 7
1 9
1 10
etc.

What I want in my ASP page is to return the actual products that each industry serves. So for the above example my script should return the products in the product table that relate to the productID's 4, 7, 9, 10, when I search it by industryID 1. I hope this is making sense. Code:

View Replies View Related

Create A Recordset With Multiple Tables?

My database has customers, orders, and orderDetails tables. I'm trying to create a page that we can access to lookup all details about our orders. That page will need information from all of these tables.

How do I create a recordset that can handle the relationships and bring in all data?

View Replies View Related

Inserting Into Multiple Tables From ASP Page.

I've been building an ASP app that sits on top of a relational database (MS Access). The problem is that the data from some web forms need to be stored in different tables. Currently I am using multiple SQL Insert statements.

The problem with this approach is that it is possible that several inserts would succeed and then one would fail. This would ruin my database. Is there some way to synchronize the Insert commands or to "flush" the commands at the same time? I need the Insert statements to either all succeed or all fail.

View Replies View Related

Select Different Fields In Multiple Tables

I have 4 tables first table category (category_id and category name in it)
second table artist (artist_id, category_id, artistname in it)
third table album (id, artist_id, album_title in it)
forth table song (id, album_id, title in it)

I'm selecting category in first page
I'm selecting artist in second page
I'm selecting album in third page

I'm requesting, collecting and posting all id's to the next page.

this is the question!!

How can I read from database

1- category name when I was selected in first page
2- artist name when I was selected in second page
3- album name when I was selected in third page

View Replies View Related

Adding Records To Multiple Tables

i have an instance where I need to add records to 2 different tables. i know how to do it basically, but the problem is, one table is generating a key number and i need this number for the second table records.

how do i put the appropriate records into the first table, grab the id number and insert the records into the second number? the information is coming from a form. i'm developing in an access db but will be moving this to an ms sql db before it goes live.is there a stored procedure that might make this easier? i know nothing about stored procedures.

View Replies View Related

Multiple Tables Identical Records

how do you do this. 2 tables. one called "Bookings" one called "Rooms"

what kinda query would i use to make it LIST the contents of the ROOM column in the BOOKINGS table, then get remove identical matches in the ROOM column in the ROOMS table?

View Replies View Related

Select Database Then Multiple Tables For Updates

What I want to do I select one database and the set the Rs1, rs2 etc.. like in Vb6 I would set DB then:

Set rs1 = db1.OpenRecordSet("Table1")
Set rs2 = db1.OpenRecordSet("Table2")

etc...

However how do I do this in asp3? Code:

View Replies View Related

Selecting Multiple Tables Using SELECT Statment Problem

I am Trying to use the SQL SELECT Statment to open records from multiple tables into one recordset.

I know the basic syntax of the Select statment but I wanted to know if its possible to recive the table name from the feild or the record that I am readinf from the recordset in any given moment.

To make things more clear, my example:

-Open a connection

SQL = "SELECT * FROM TABLE1,TABLE2 WHERE TABLE1.UserID=" & uid & " And TABLE2.UserID=" & uid

rs.open sql,conn,3,3

while not rs.EOF

-read from record

rs.movenext
wend
rs.close
conn.close

now, in the part that I read from the record, is their any way I can know if that record is from table1 or table2?

View Replies View Related

Clone/duplicate Recordset Spanning Multiple Tables

I would like to dulicate a selected record. Sounds easy enough like performing another INSERT operation. However, that solution only works if the datasource is only one table.

I have 4 different tables all linked to the main table through a unique primary key (auto number). When a user clicks a button to clone a record, all related records from the other tables must also be duplicated using the newly assigned ID that matches the one from the main table.

Hopefully I didn't confuse you. Consider it like a multi-step process of filling out different web-based forms but using the same unique id.

I don't know the first place to start on creating duplicate entries based on existing records. If you can start me with the code, I could probably follow the logic. THe difficult part for me to conceptualize is how to carry this new ID to all the other tables.

View Replies View Related

Updating My Access DB

I'm doing a program using VB.net. Hosting it on a server so it is done in ASPX.

So my problem is as follows. I want to add a new row of data in my access db. I know this code is working but it doesn't update the db once I close the website. EG it will make a temp db I believe but doesnt save it. Here's the line of code that adds the row and the data with all it's corresponding fields. Code:

View Replies View Related

Updating Access DB

I have an app that takes user input (its a normal Windows program) and does a variety of functions from installing software to updating group members, to joining a server to Active Directory. This app was built using SMS installer and receives the input from users as variables and does the functions on the computer specified by the user. I'd like to add another feature that would add this computer name to our Access database that sits on our web server.

We use ASP pages to view, add and update the entries by hand. Incorporating this into the Windows APP would be beneficial.I am trying to learn whether or not I can pass these variables from the program into a URL that would perform an update to the DB by opening a web site Something like

%APPVARIABLE1% = MYNEWCOMPUTERNAME
passing %appvariable1% to http://mywebpage?SRVNAME="MYNEWCOMPUTERNAME"
and performing the submit automatically.

View Replies View Related

Updating A Access DB

in access i have a feld called STORY which is a MEMO field. all the updates work fine and i can update/modify this field no problem, untill i start using working with ",! etc in.

these symbols are obviously messing with my code as the update page submits, i can't have news storys with no " or , in them, so if anyone knows of a way round this problem.

View Replies View Related







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