Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Update Query Advise on BE SQL and Access FE

3 views
Skip to first unread message

SimonT

unread,
Mar 30, 2010, 8:19:41 AM3/30/10
to
Hi Guys,

I have a form that is used to update prices I have the following sql
statement:

UPDATE products SET products.price =
[price]+[Forms].[frmPriceModify].[txtchange]
WHERE (((products.productID)=[Forms].[frmPriceModify].[productID]));

I am wondering what is the best way to handle something like this, is it
possible to pass the form variables?

Currently this query will not work on the linked SQL tables, but works fine
if I switch to the local access BE

Any suggestions welcome

Si

a a r o n . k e m p f @gmail.com [MCITP: DBA]

unread,
May 5, 2010, 8:32:51 AM5/5/10
to
Dim strSql as string
strSql = "UPDATE products SET products.price = [price]+" & [Forms].
[frmPriceModify].[txtchange] & "WHERE products.productID= " & [Forms].
[frmPriceModify].[productID]

DoCmd.RunSql strSql

0 new messages