Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inputbox, check for record, copy record...HELP!!!!

Status
Not open for further replies.

lin

IS-IT--Management
Aug 27, 2000
13
0
0
US
Okay, here I am again. I have one large table (1900 records). I want to have an input box appear to capture a social security number. Then I want to locate and display the appropriate record on a page (not a form). Finally, I want to copy the displayed record (just a couple of fields) to another table.

Please help! This is due in three days.

Thanks in advance.
 
I assume you know the coding side so the only problem bit of SQL might be where you are "copying" the data (I'm assuming you mean inserting the data as a new row in another table);

INSERT INTO tblTestInsert ( Field1, Field2 )
SELECT Field1, Field2
FROM tblTest
WHERE SocialSecurityNo="01234";
 
Actually I thought I knew the code but it's not working properly (or rather, consistently).

Can you help?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top