F
Fuzuy
I am running some difficulty, I try to update ID_req of Table
"documents" using ID# of another Table "Dwg_Spe_Cal_Dsheet" based on
a selection of ID from a Form. SQL is in the following, but I got "Run-
Time error '424', object required... however there is no complier
error, what is the "Object Required" means and know how to fix it?
Thanks for help....
If ((Dwg_Spe_Cal_Dsheet.[ID#]) = [Forms]![frmdwg_spe_cal_dsheet]!
[ID#]) And (documents.[ID_update] = True Or documents.[ID_update] =
Null) Then
If documents.[ID_update] Is Null Then
ssQ = "UPDATE documents Set documents.[ID_req] = Dwg_Spe_Cal_Dsheet.
[ID#];"
DoCmd.RunSQL ssQ
documents.[ID_update] = True
End If
If documents.[ID_update] = True Then
ssQ = "UPDATE documents Set documents.[ID_req] = ([ID_req] + "", "")
& Dwg_Spe_Cal_Dsheet.[ID#];"
DoCmd.RunSQL ssQ
End If
End If
"documents" using ID# of another Table "Dwg_Spe_Cal_Dsheet" based on
a selection of ID from a Form. SQL is in the following, but I got "Run-
Time error '424', object required... however there is no complier
error, what is the "Object Required" means and know how to fix it?
Thanks for help....
If ((Dwg_Spe_Cal_Dsheet.[ID#]) = [Forms]![frmdwg_spe_cal_dsheet]!
[ID#]) And (documents.[ID_update] = True Or documents.[ID_update] =
Null) Then
If documents.[ID_update] Is Null Then
ssQ = "UPDATE documents Set documents.[ID_req] = Dwg_Spe_Cal_Dsheet.
[ID#];"
DoCmd.RunSQL ssQ
documents.[ID_update] = True
End If
If documents.[ID_update] = True Then
ssQ = "UPDATE documents Set documents.[ID_req] = ([ID_req] + "", "")
& Dwg_Spe_Cal_Dsheet.[ID#];"
DoCmd.RunSQL ssQ
End If
End If