Hi Guys
Code:
Private Sub Command6_Click()Dim StrSQL As String
Dim rec As String
Dim but As String
If IsNull(Me.Text0) Then
MsgBox "Please Enter Workstation ID", vbInformation, "Workstation ID Required"
Me.Text0.SetFocus
ElseIf IsNull(Me.Text3) Then
MsgBox "Please Enter Workstation Description", vbInformation, "Workstation Description Required"
Me.Text3.SetFocus
Else
CurrentDb.Execute "INSERT INTO Workstation_tbl (Workstation_ID,Workstation_Desciption) " & "VALUES ('" & Me.Text0 & "','" & Me.Text3 & "')"
MsgBox " Workstation Details Saved Successfully !!!"
Me.Text0.Value = Null
Me.Text3.Value = Null
Me.Text0.SetFocus
End If
End Sub
Above is the code i have written to insert data. Now i want to save an attachment along with the values from text0 and text3. How do this part?
Appreciate your help.
Thanks in advance