W
WDSnews
My reading and experiments have failed so I set up this experiment which
also failed. I want this Module1 function to return the name of a control
and its value.
Public Function FindAssets( _
lngBarcodeID As Long, _
lngAssetsID As Long, _
frm As Object) As String
'Return the name of a control and its value
FindAssets = [Forms].frm.[cboTitle].Name & ", " & _
[Forms].frm.[cboTitle].Column(1).Value
End Function
---
I created a button to test the function
Private Sub Button42_Click()
MsgBox prompt:=FindAssets(Nz(Me.ID, 0), Nz(Me.Asset_ID, 0), Me)
End Sub
I appreciate your suggestions.
also failed. I want this Module1 function to return the name of a control
and its value.
Public Function FindAssets( _
lngBarcodeID As Long, _
lngAssetsID As Long, _
frm As Object) As String
'Return the name of a control and its value
FindAssets = [Forms].frm.[cboTitle].Name & ", " & _
[Forms].frm.[cboTitle].Column(1).Value
End Function
---
I created a button to test the function
Private Sub Button42_Click()
MsgBox prompt:=FindAssets(Nz(Me.ID, 0), Nz(Me.Asset_ID, 0), Me)
End Sub
I appreciate your suggestions.