I have data in a table SALES that I want to export to an individual file for each customer WHERE (((SALES.Packed)=No));

The file will be named CUSTOMERID.qqq - both are fields in the table

The data to be put in the file is from the Job_Order field and I wouldlike it per line as there may be 2-5 entries for that customer

Many thanks

Share

Reply to This

Replies to This Discussion

Hi John

Couple of questions to verify.

So one file per customer, and one line per record for that customer?

Do you want a CSV type file?

Are you familiar with writing code?

Is this a once off thing, or something to be used regularly?

Reply to This

yes one file per customer containg the record for that customer that are not packed

A csv type file would do the job as long as it had a .qqq extension

I am not that familiar with writing code

It will be used daily, I have a query that prints labels for the customers and a query that then updates all sales to packed, these are run manually

Thanks

Reply to This

Without writing code, and I think that is more difficult than I can explain here, have you considered just using the File > Export option.

You would need to parameter create a query that gets the data into the format you want for the file, then user File > Export to export to a CSV file. You would need to do this manually, or maybe a macro, and supply the filename manually.

So create a query that lists all the data you want, add a parameter for selecting the customer, then choose CSV as the export format and follow the Export wizard.

Other than that if you want to delve into code the first thing is to get familiar with basic code and then look at the TransferText action/method to do the export. Or if you know someone who can write code.

Maybe someone else here can provide more information. Try contacting some of the developers here with more experience.

Reply to This

RSS

Latest Activity

on Monday
Saiful a Khan added a photo
on Monday
Saiful a Khan is now a member of Access Developers
on Monday
Patrick, THANKS!! It's great to have one listing of all these resources. I've visited most of these sites, and Allen Browne's is great, as is The Access Web. Although I've found sometimes it's difficult to zero in on specific development feature th…
on Monday
Wow thankyou Patrick. I now have my new MS Office 2007 so can get started on my first project on Accces 2007, hopefully dipping into a lot of the resources posted so far. I have also found on ebay the full Library of Bilbles for Microsoft Office fo…
on Sunday
Here are some of my best links that will help you learn more about Access--fabulous sites -- and they are free (mostly). A Free Ebook Tutorial http://thatlldoit.com/accessbasics.aspx Allen Browne's site -- One of the very best. I can't do without…
on Sunday
Hello Stephanie, I apologize, I replied to your question a few weeks ago about Richard Rost's online courses. But I don't see my reply posted here. Richard has short free targeted demos, and he also has more extensive targeted courses that you can…
on Friday
I am new to this group but I can see that there is enough expertise here that we who are able can take turns writing tips - articles, etc. sharing our knowledge. If we could assess the knowledge we have among ourselves then someone could organize a…
on Friday

Badge

Loading…

© 2009   Created by Access Guy on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service