SimoneRene
Registered User.
- Local time
- Today, 02:03
- Joined
- Mar 15, 2017
- Messages
- 58
Hi Guys,
I have this code behind a save button, I'm trying to automatically update my table from a form when a user up issues a drawing to a new rev.
I have created a column in my table to denote weather the issue is an 'old issue' or 'latest issue', this is what I'm trying to auto update. On the form there is a button to tick if its the latest issue which fills the text box LatestIssTxt= "Latest Issue".
On the form we have DwgNoCbo, txtIssue and LatestIssTxt which are linked to DrawingNumber, Issue and LatestRev respectively in the table.
Any help is greatly appreciated, I'm losing the will! haha:banghead:
Thank you.
I have this code behind a save button, I'm trying to automatically update my table from a form when a user up issues a drawing to a new rev.
Code:
If [LatestIssTxt] = "Latest Issue" Then
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE DWGIssueControl SET DWGIssueControl.LatestRev ='Old Issue'" & "WHERE (((DWGIssueControl.DrawingNumber) = '" & Me.DwgNoCbo & "')) & ((DWGIssueControl.Issue)<> '" & Me.txtIssue & "')"
'When drawing is up-issued status changed to old issue automatically changed from Latest Issue
End If
On the form we have DwgNoCbo, txtIssue and LatestIssTxt which are linked to DrawingNumber, Issue and LatestRev respectively in the table.
Any help is greatly appreciated, I'm losing the will! haha:banghead:
Thank you.