|
-
Oct 16th, 1999, 08:30 AM
#1
Thread Starter
Lively Member
Hi,
I have a database program that I use SQL to update data. Everything works
fine except sometimes the SQL statement does not get the latest information
without closing the whole program down and bringing it back up. Any Ideas
would be appreciated.
Here is the code I use for the SQL.
Thanks
Private Sub Command1_Click()
rOpenOrders.PrintReport
Dim dbOrderInfo As Database
Dim strSQL As String
Set dbOrderInfo = OpenDatabase("Y:\DataBase\OrderInfo.mdb")
strSQL = "UPDATE Orders SET PartStatus = 'ORDERED' WHERE PartStatus='OPEN'"
dbOrderInfo.Execute strSQL
dbOrderInfo.Close
Set dbOrderInfo = Nothing
Unload PlaceOrders
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|