Hello,
Could you please help how to exporting search results in to xlsx file, with below vba i get empty result on excel
see attachement
Could you please help how to exporting search results in to xlsx file, with below vba i get empty result on excel
see attachement
Code:
Private Sub Command91_Click()
DoCmd.OutputTo acOutputForm, "Listproduct", acFormatXLSX, "C:\Data\export.xlsx", True
End Sub
Private Sub txtSearch_KeyUp(KeyCode As Integer, Shift As Integer)
Me.frmlistprod.Form.Filter = "[ItemCode]Like '*" & Me.txtSearch.Text & "*' or" _
& "[ItemDescription]Like '*" & Me.txtSearch.Text & "*' or" _
& "[PPU]Like '*" & Me.txtSearch.Text & "*'"
Me.frmlistprod.Form.FilterOn = True
End Sub