Good Afternoon,
I need to update a record in a table (user_tblJobProp)based on a selection in an option group on a form, however I need to know how to store the current records ID or call the current record ID into a variable, Any ideas?
I need to update a record in a table (user_tblJobProp)based on a selection in an option group on a form, however I need to know how to store the current records ID or call the current record ID into a variable, Any ideas?
Code:
Private Sub frmDelivery_AfterUpdate()
Dim strSQL As String
Dim strJobID As String
Dim parentID$
[COLOR=red][i]these are two options I have tried, neither give the desired results, both return an empty string [/i]
parentID$ = is_modItem_GetParentID(ID$)
'strJobID = Me.ctlDescription[/color]
Select Case frmDelivery.Value
Case 1
strSQL = "UPDATE user_tblJobProp" & _
"SET user_tblJobProp.[Delivery_Charge] = '0'" & _
"WHERE user_tblJobProp.[ID]= parentID$;"