O
Opal
I'm not sure if I am going about this the
right way, but.....
In access 2003 I have a form where
I want to the user on the submit button
to update the value in one field on
the table. The form is unbound.
I have the following:
Sub SubmitOrg()
Dim HoldTLTeamID As Integer
Dim HoldTLName As Long
Dim HoldTeam As Long
Dim strQuery As String
HoldTLTeamID = Forms!subfrmZoneTMTeam.TLTeamID.Value
strQuery = "UPDATE EMPInfo " & _
"SET TLTeamID = HoldTLTeamID " & _
"WHERE LstEMP Is Not Null"
CurrentDb.Execute strQuery, dbFailOnError
End Sub
I want the TLTeamID value to equal the
value the user sets on the form for specific
employees noted on the form.
I am getting an error message:
"Too few parameters. Expected 2"
Can I accomplish this with a list box where
the user highlights the names of the employees
where the TLTeamID value needs to be affected?
Can I accomplish this, as well, where the Team Lead's
name is selected from from a combo box?
Any insight / help would be appreciated.
right way, but.....
In access 2003 I have a form where
I want to the user on the submit button
to update the value in one field on
the table. The form is unbound.
I have the following:
Sub SubmitOrg()
Dim HoldTLTeamID As Integer
Dim HoldTLName As Long
Dim HoldTeam As Long
Dim strQuery As String
HoldTLTeamID = Forms!subfrmZoneTMTeam.TLTeamID.Value
strQuery = "UPDATE EMPInfo " & _
"SET TLTeamID = HoldTLTeamID " & _
"WHERE LstEMP Is Not Null"
CurrentDb.Execute strQuery, dbFailOnError
End Sub
I want the TLTeamID value to equal the
value the user sets on the form for specific
employees noted on the form.
I am getting an error message:
"Too few parameters. Expected 2"
Can I accomplish this with a list box where
the user highlights the names of the employees
where the TLTeamID value needs to be affected?
Can I accomplish this, as well, where the Team Lead's
name is selected from from a combo box?
Any insight / help would be appreciated.