Compatible Support Forums: MySQL help

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

MySQL help

#1 User is offline   jeff c 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 27-June 08

Posted 27 June 2008 - 03:44 PM

i am still new at SQL... having a problem with this do command..

rs.Open "SELECT * FROM [Weekly Report - Amazon eBay1];", CurrentProject.Connection, adOpenStatic, adLockOptimistic
rc = rs.RecordCount
Do While rs.EOF = False
DoCmd.RunSQL "UPDATE [Weekly Report - Amazon eBay2] SET [Sales]=" & rs("Sales") & " WHERE ((Site ='" & rs("Site") & "') And ([Dept] ='N 01'))" & "'"
rs.MoveNext
Loop
rs.Close

'N 01' is text, not a vairable.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users