-
1
- #1
Hello. Im trying to insert data into an Access database. How can I replace "Ladies_Dresses" with a variable. I wish to use
strArea = Request.QueryString("Area" and put the variable strArea instead of the "Ladies_Dresses
Code
objRS.Open "Select * FROM Ladies_Dresses WHERE 1<>1",objConn
objRS.AddNew
objRS( "DateAdded" ) = strDateAdded
objRS( "Description" ) = strDescription
objRS( "Colour" ) = strColour
objRS( "Quantity" ) = strQuantity
objRS( "Size" ) = strSize
objRS( "Price" ) = strPrice
objRS.Update
objConn.Close
Set objConn = Nothing
Thanks
Matthew Wilde
matthew@ukwebsite.com
strArea = Request.QueryString("Area" and put the variable strArea instead of the "Ladies_Dresses
Code
objRS.Open "Select * FROM Ladies_Dresses WHERE 1<>1",objConn
objRS.AddNew
objRS( "DateAdded" ) = strDateAdded
objRS( "Description" ) = strDescription
objRS( "Colour" ) = strColour
objRS( "Quantity" ) = strQuantity
objRS( "Size" ) = strSize
objRS( "Price" ) = strPrice
objRS.Update
objConn.Close
Set objConn = Nothing
Thanks
Matthew Wilde
matthew@ukwebsite.com