Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public Const EM_GETLINE = 196
Private Declare Function SendMessageAsString Lib "user32" _
Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, ByVal lParam As String) As Long
Public Function gsGet_Textbox_Line(cTxtBox As TextBox, lLineNo As Long) As String
Dim sRetVal As String
Dim lResult As Long
'* * * * * * * * * * * *
'Initialise the return value
sRetVal = String(150, " ")
'Make sure it is a text box
If TypeOf cTxtBox Is TextBox Then
lResult = SendMessageAsString(cTxtBox.hwnd, EM_GETLINE, lLineNo, sRetVal)
End If 'cTxtBox IS a textbox
gsGet_Textbox_Line = Trim$(sRetVal)
End Function
Data1.Recordset.Fields(4) = gsGet_Textbox_Line(Text5, 0)
Data1.Recordset.Fields(5) = gsGet_Textbox_Line(Text5,1)
Data1.Recordset.Fields(6) = gsGet_Textbox_Line(Text5,2)
Data1.Recordset.Fields(4) = Mid(Text5.Text, 0, 60)
Data1.Recordset.Fields(4) = Mid(Text5.Text, 1, 60)