Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Telephone Answering

Sql proplem?


this query is spouse to ask the user to enter a room number and then copy the associated row into a table called history but it isnt doing any change please help me
INSERT INTO history_check_in_indevisuals ( reservation_num, room_number, guest_name1, guest_name2, guest_name3, guest_name4, passport_number, nationality, arrival_date, depature_date, telephone_num, address, email, emploee, room_type )
SELECT 'reservation_num', 'room_number', 'guest_name1', 'guest_name2', 'guest_name3', 'guest_name4', 'passport_number', 'nationality', 'arrival_date', 'depature_date', 'telephone_num', 'address', 'email', 'emploee', 'room_type'
FROM check_in_indevisuals
WHERE ['room_number']='1';
take into consideration that its an access database and in the check in table the room number is primary key and in the history table reservation number is the primary key , is it relationships or a code mistake , i tried every thing please help me and dont answer unless you are 100% sure

so how to fix it

Remove all ' in your code.

INSERT INTO history_check_in_indevisuals ( reservation_num, room_number, guest_name1, guest_name2, guest_name3, guest_name4, passport_number, nationality, arrival_date, depature_date, telephone_num, address, email, emploee, room_type )
SELECT reservation_num, room_number, guest_name1, guest_name2, guest_name3, guest_name4, passport_number, nationality, arrival_date, depature_date, telephone_num, address, email, emploee, room_type
FROM check_in_indevisuals
WHERE room_number ='1'

Hence Wijaya
www.ex-Soft.tk

youve combined an insert and select query, and thats not logical.

Tags
  Business Services   Business Address   Call Forwarding   Call Handling   Answering Service   Telephone Answering   Mail Forwarding   Virtual Address   Virtual Assistant   Virtual Business   Virtual Offices
Related information
  • Xbox live with a wireless router how do i?????

    1. Yes. Yahoo search for it. 2. $100 for a real good one. That's what I found. 3. Depends what you mean by "basic" A 1x router goes a short distance, for that distance I&...

  • Are you ready for a funny joke, my wife will kill me, But!!! LOL let me know what you think.thanks?

    OMG!!!!!!!!!!!! that was so Hilarious have a star! that is really the funniest one i have ever read in my whole life!

    ...
  • This is the best joke ever! right?

    LMAO!!!! My coworkers are giving me wierd looks bc i can't stop laughing!

    ...
  • Do you think these are good trivia questions?

    26/ 27! i promise!!!!!!!!!!!!!!!!!

    ...
  • Man dead riddle what happened?

    Two scenarios: 1) Fisherman was making a phone call, had a heart attack, fell against the glass breaking it. Severed an artery which accounts for blood everywhere. When he fell he dropped the rece...

  • Pervert? tumor brain?psychose?mental illness? how to deal with this kind of person? stop her?

    Leave her in God's hands sweetheart...you must have faith, that our Father knows best, what He wills is going to be the right thing..don't let her upset you, and you are correct, Satan ha...

  • How do you do this poisson distribution question?

    The Poisson distribution can be derived from the binomial distribution. The Poisson is nothing more than the limiting case of the Binomial where n is large and p is small. A good way to identif...

  • I need to contact Alan Stephenson.?

    Maybe see if he has a Facebook profile? (www.facebook.com)

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster