Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6915019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:25:20+00:00 2026-05-27T09:25:20+00:00

I’m using visual studio 2008 express running C#. I got Cart table and Checkout

  • 0

I’m using visual studio 2008 express running C#. I got Cart table and Checkout table in the same database which is an access file. both table have 3 same column which is ProductID,MemberID and Quantity.

So when I click a button in the Shopping cart page, the data in Cart table are supposed to transfer to Checkout table and the data in Cart are supposed to be cleared (which I haven’t try yet because the transfer part is not successful). In the configure data source, SQL statement Insert part I wrote:

INSERT INTO [Checkout] 
([ProductID], [MemberID], [Quantity]) 
VALUES (?, ?, ?) 
SELECT([ProductID], [MemberID], [Quantity]) 
FROM [Cart] 
WHERE ([MemberID]=?)

and the error is (Missing semicolon (;) at end of SQL statement.) come out at the aspx.cs (adsCart.Insert(); ) when I run it. When I try to execute query in configure datasource , the error is (Unable to parse query text.)

(I have also tried another way where the code is

string MemberID = User.Identity.Name;
string Product = ??? ;
string Quantity =??? ;   (Both ??? is the part where I do not know what to put in.)   



    adsCart1.SelectParameters["MemberID"].DefaultValue = MemberID;
    adsCart1.SelectParameters["ProductID"].DefaultValue = ProductID;
    adsCart1.SelectParameters["Quantity"].DefaultValue = Quantity;

    adsCheckout.InsertParameters["ProductID"].DefaultValue = ProductID;
    adsCheckout.InsertParameters["MemberID"].DefaultValue = MemberID;
    adsCheckout.InsertParameters["Quantity"].DefaultValue = Quantity;

    adsCheckout.Insert(); 

But I do not know what to put in for the 2 ??? part so I only managed to transfer the memberID to the Checkout Table.)

Sorry if the Question is too long. Please help me to solve this problem or tell me the better way to transfer data from one table to another table. I also need help in creating simple search engine for products for my website.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:25:21+00:00Added an answer on May 27, 2026 at 9:25 am
    INSERT INTO [Checkout] ([ProductID], [MemberID], [Quantity]) 
    SELECT [ProductID], [MemberID], [Quantity]
    FROM [Cart] 
    WHERE [MemberID]=?
    

    Use SQL are per your first thoughts. The above statement should get the values you require. All you need to do is specify a member ID in the Where clause.

    More information :

    http://msdn.microsoft.com/en-us/library/ms188263.aspx

    http://msdn.microsoft.com/en-us/library/ms189872.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.