How do i execute the qryString? Mydb.OpenRecordset (qryString) is wrong i assume
"Stuart McCall" wrote:
[Quoted Text] > "h3llz" <h3llz[ at ]discussions.microsoft.com> wrote in message > news:D9C1AC92-8DA9-4C12-AFE7-37D52033B85B[ at ]microsoft.com... > > qryString = "INSERT INTO tblProductsLog > > (staffID,productID,quantity,timestamp) VALUES ('" & staffID & "','" & > > txtProductID.Caption & "','-" & cmoSelectQuantity.Text & "','" & Now() & > > "');" > > > > whats wrong? > > Lose the quotes surrounding the Now() function. > > >
|