D
dchristo
I am having a problem with this code:
This is in pop up combo box - once someone selects the item(s) and closes
the box - the record that was to be populated with the selection gets messed
up.
Do you see anything that could be causing the problem?
Private Sub Dmglist_AfterUpdate()
Dim varvalue As Variant
Dim strDmglist As String
Dim strSQL As String
For Each varvalue In Me.Dmglist.ItemsSelected
strDmglist = strDmglist & Me!Dmglist.Column(0, varvalue) & ", "
Next varvalue
strDmglist = Left$(strDmglist, Len(strDmglist) - 2)
strSQL = "UPDATE [form] SET [form].[property] = '" & strDmglist & "'where
[ln#]=" & Me!Text5
DoCmd.SetWarnings False
DoCmd.RunSQL (strSQL)
DoCmd.SetWarnings True
End Sub
This is in pop up combo box - once someone selects the item(s) and closes
the box - the record that was to be populated with the selection gets messed
up.
Do you see anything that could be causing the problem?
Private Sub Dmglist_AfterUpdate()
Dim varvalue As Variant
Dim strDmglist As String
Dim strSQL As String
For Each varvalue In Me.Dmglist.ItemsSelected
strDmglist = strDmglist & Me!Dmglist.Column(0, varvalue) & ", "
Next varvalue
strDmglist = Left$(strDmglist, Len(strDmglist) - 2)
strSQL = "UPDATE [form] SET [form].[property] = '" & strDmglist & "'where
[ln#]=" & Me!Text5
DoCmd.SetWarnings False
DoCmd.RunSQL (strSQL)
DoCmd.SetWarnings True
End Sub