A
Afrosheen via AccessMonster.com
I'm trying to change an expr string which consist of [lname]&", " & [fname]
to make it into a text string so I can store that information in another
field which is a text field. Every time I try and do this I get an error
saying that the field can not be edited. I tried putting in the error code
number like:
After I put in the break points and hover my cursor over the strtxt and
combo41 line it will show the correct information. When I hover over the
strtxt after the Me!Supervisor it will show nothing.
I'm really lost here some where and could use some help.
Private Sub Combo41_AfterUpdate()
Dim strtxt As String
10 On Error GoTo Combo41_AfterUpdate_Error
20 strtxt = Combo41
30 Me!Supervisor = strtxt
40 On Error GoTo 0
50 Exit Sub
Combo41_AfterUpdate_Error:
60 If Err.Number <> -2147352567 Or 3327 Then
70 MsgBox "Error " & Err.Number & " (" & Err.Description & ") in
procedure Combo41_AfterUpdate of VBA Document Form_Copy of frmSupervisor"
80 End If
End Sub
to make it into a text string so I can store that information in another
field which is a text field. Every time I try and do this I get an error
saying that the field can not be edited. I tried putting in the error code
number like:
After I put in the break points and hover my cursor over the strtxt and
combo41 line it will show the correct information. When I hover over the
strtxt after the Me!Supervisor it will show nothing.
I'm really lost here some where and could use some help.
Private Sub Combo41_AfterUpdate()
Dim strtxt As String
10 On Error GoTo Combo41_AfterUpdate_Error
20 strtxt = Combo41
30 Me!Supervisor = strtxt
40 On Error GoTo 0
50 Exit Sub
Combo41_AfterUpdate_Error:
60 If Err.Number <> -2147352567 Or 3327 Then
70 MsgBox "Error " & Err.Number & " (" & Err.Description & ") in
procedure Combo41_AfterUpdate of VBA Document Form_Copy of frmSupervisor"
80 End If
End Sub