Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

HELP Please: MS ACCESS QUERY/TABLE How to export to excel selected column

Dennise03

Amateur
Advanced Member
Messages
147
Reaction score
0
Points
26
Guys paano ba mag export ng table or query sa excel kung saan pipili ka lang kung anong column ang gusto mong i-export. Halimbawa ang Query ko ay may 5 columns tapos gusto ko lang ay 3 columns lang ang gusto Kong i-export. Sana may makatulong. Thanks
 
wala ka po sample file nung access at sample po na excel na paglalagyan ng na query mu po.
para mas madali po gawin..
 
wala ka po sample file nung access at sample po na excel na paglalagyan ng na query mu po.
para mas madali po gawin..

eto yung ginamit kong code. na search ko lang sa google.

Dim outputFileName As String

outputFileName = CurrentProject.Path & "\access" & "_" & "Employees" & ".xls"
DoCmd.OpenQuery "employee_qry"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "prod_transfer_filter", outputFileName, True


example: sa "employee_qry" ko may 5 fields (A, B, C, D and E). Ngayon ang gusto ko may options ako kung ano ang pipiliin ko na i-transfer sa excel like field A, C at E lang ang pinili ko. Thanks sa reply.
 
Pwede to.

1. Show the records in a form.
2. Select the records.
a. Maglagay ka ng button, kada click, ilalagay mo yung id sa variable or list box

3. Modify the Query SQL on the fly, yung where kung ano ang laman ng variable or listbox
4. Transfer Spreadsheet.
5. End

Cp mode lang, hindi kasi ako makareply sa workstation ko, naka-block ang symb
 
eto yung ginamit kong code. na search ko lang sa google.

Dim outputFileName As String

outputFileName = CurrentProject.Path & "\access" & "_" & "Employees" & ".xls"
DoCmd.OpenQuery "employee_qry"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "prod_transfer_filter", outputFileName, True


example: sa "employee_qry" ko may 5 fields (A, B, C, D and E). Ngayon ang gusto ko may options ako kung ano ang pipiliin ko na i-transfer sa excel like field A, C at E lang ang pinili ko. Thanks sa reply.

SELECT A, C, E FROM Table;

*** hula ko lang :) ***
 
Last edited:
Pwede to.

1. Show the records in a form.
2. Select the records.
a. Maglagay ka ng button, kada click, ilalagay mo yung id sa variable or list box

3. Modify the Query SQL on the fly, yung where kung ano ang laman ng variable or listbox
4. Transfer Spreadsheet.
5. End

Cp mode lang, hindi kasi ako makareply sa workstation ko, naka-block ang symb

Salamat Knives645. Try ko iyan.

- - - Updated - - -

SELECT A, C, E FROM Table;

*** hula ko lang :) ***

salamat. kaso di ko alam kung ano ang isusunod kong command dyan :-)

- - - Updated - - -

Pwede to.

1. Show the records in a form.
2. Select the records.
a. Maglagay ka ng button, kada click, ilalagay mo yung id sa variable or list box

3. Modify the Query SQL on the fly, yung where kung ano ang laman ng variable or listbox
4. Transfer Spreadsheet.
5. End

Cp mode lang, hindi kasi ako makareply sa workstation ko, naka-block ang symb



Sir knives645, di na kita ma pm, full na daw inbox mo.
 
Back
Top Bottom