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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

1 Form, 2 Records.....

Status
Not open for further replies.

dbdubb

Technical User
Dec 30, 2005
3
US
Hello,
I'm curious as to if I can use 1 Form to pass 2 Records into the same table database. For example, if my form collects txtPlayer1 and txtPlayer2 fields, how can I tell it to insert txtPlayer1 into the "Name" field of the database, then tell it txtPlayer2 into the "Name" field of the database? After writing this I feel like it should be the same procedure but I'm not sure.

Any help is greatly appreciated!!
Thanks!
 

sql1= "Insert Into mytable (Name) values ('"&txtPlayer1&"')"
sql2= "Insert Into mytable (Name) values ('"&txtPlayer2&"')"

conn.execute (sql1)
conn.execute (sql2)

-DNG

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top