[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Help Inserting Records from one table to another

Asked by gormly in Active Server Pages (ASP)

Tags: database, sql, values

I need to update a table from another table..

The two databases are paradox format DBFIII.

I have figured out a way to get around them not being in the same database by linking them in a MS Access database.


I need to grab data from one depending on a condition and insert them into the other.  Right now I have to do a 5 minute procedure to do this by hand and I figured  I could do it with asp much easier with one click or page load.

So I looked around and found something similar to the code below and rearrageged it to match my needs.

But I don't think it's going to work (I don't have access to the sever for a few days)

Can someone tell me if there is anything wrong with this code? and if it needs something else?

Should I use 2 recordsets here?


CODE BELOW:



<%
Dim ConnectString, conn, SQL
ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "c:\websites\mydata.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
conn.open ConnectString

%>
<%
SQL = "SELECT * FROM mydata WHERE ACCO = '1000'"
Set RS = Conn.Execute(SQL)

while not RS.EOF

strACCO = RS("ACCO")
strDISCOUNT = RS("DISCOUNT")
strDUEON = RS("DUEON")
strGROSS = RS("GROSS")
strDATE = RS("DATE")
strINVOICE = RS("INVOICE")
strNET = RS("NET")
strVENDORINV = RS("VENDORINV")
strVENDORNAME = RS("VENDORNAME")
strEZPAY = RS("EZPAY")
strEZPAYNET = RS("EZPAYNET")
strAT = RS("AT")
strRECEIPT = RS("RECEIPT")
strBDATE = RS("BDATE")


SQL = "INSERT INTO mydata2(ACCO,DISCOUNT,GROSS,DATE,INVOICE,NET,VENDORINV,VENDORNAME,EZPAY, "
SQL = SQL & "EZPAYNET,AT,RECEIPT,BDATE) "
SQL = SQL & "VALUES('"& strACCO &"','"& strDISCOUNT &"','"& strGROSS &"','"& strDATE &"', "
SQL = SQL & "'"& strINVOICE &"','"& strNET &"','"& strVENDORINV &"','"& strVENDORNAME &"','"& strEZPAY &"', "
SQL = SQL & ""& strEZPAYNET &",'"& strAT &"','"& strRECEIPT &"','"& strBDATE &"','" & "')"
Conn.Execute(SQL)

RS.movenext
wend
RS.close
set RS = nothing
set conn = nothing
set ConnectString = nothing
%>
[+][-]02/14/03 08:46 PM, ID: 7954631Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 08:53 PM, ID: 7954646Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 08:56 PM, ID: 7954649Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 09:01 PM, ID: 7954655Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 09:40 PM, ID: 7954714Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 09:46 PM, ID: 7954733Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 09:52 PM, ID: 7954746Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 09:57 PM, ID: 7954754Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 10:02 PM, ID: 7954762Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 10:04 PM, ID: 7954765Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 10:12 PM, ID: 7954775Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 10:15 PM, ID: 7954783Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Active Server Pages (ASP)
Tags: database, sql, values
Sign Up Now!
Solution Provided By: hongjun
Participating Experts: 2
Solution Grade: A
 
[+][-]02/14/03 10:16 PM, ID: 7954784Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 10:18 PM, ID: 7954793Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 10:23 PM, ID: 7954800Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 10:26 PM, ID: 7954804Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 10:28 PM, ID: 7954810Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 10:31 PM, ID: 7954820Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 10:40 PM, ID: 7954834Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 10:49 PM, ID: 7954857Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/14/03 10:51 PM, ID: 7954862Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/03 11:15 PM, ID: 7954924Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/15/03 06:55 AM, ID: 7955740Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/15/03 07:03 AM, ID: 7955763Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89