Results 1 to 2 of 2
  1. #1
    methosmen is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    1

    Automatic traffic count on small airport.

    Hi, I work at a small airport in Norway. Today we write traffic statistics by hand and I would like to make this more automatic.



    I only have a general knowledge of Access and would appreciate some help getting started.

    I'm using Windows 7 and MS Access 2007.

    Everyday we can save arrivals and departures from the Norwegian Aeronautical Information System into a text file. I have included the text file here.
    As you can see, the problem is that the text file is not csv. In access I find the most logic choise would be to import it using fixed width. When doing so I get a table looking like this.

    I would like for Access to automatically build a table like this everyday if a text file with "todays" date e.g. "100611.txt" exists in folder X.
    I would then want Access to run through the table creating two new tables, one for departures and one for arrivals for that date. The field names should match the field names of ID7 from the .jpg file. When a match for ENXX under field7 is found it should write a new line to Arrivals table using the ID from the match and go through all the fields. Same for departures when a match for ENXX is found under field6.

    I hope I was able to make this understandable. I am not into the lingo of programming.

    Is this possible? Any starting help here is highly appreciated.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    yes it is possible. though your terminology and approach isn't...but that is ok.

    One can import a text file. But to automate that isn't really an Access issue. Access can easily set up an 'import specification' that you can trigger with a button click. You can either remember to it each morning - or have it trigger upon open of the application (presuming you open the application each day) or otherwise get to know the Task Manager type feature of Windows7 and try to make the opening of the application (and import trigger) a scheduled system event.

    Your import task - fundamentally "builds the table". One doesn't need any other table building per se - and one would not "run thru the table and create 2 new tables". The data is there or it is not (this isn't an Access issue but a fundamental database concept). Thus to see Arrivals you would query that table. Same for Departures, same for todays, same for yesterdays, etc.

    Bottom line - yes Access database can definitely do what you need. The only real limitation of Access is that it is not web based (unless you co-invest with Sharepoint) and about 20+ simultaneous users really pounding on the data (no hard and fast rule on this one) one needs to be wary. Also its 2G max data file size. But otherwise it is a very solid database with integrated form development and report development.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Employment Agency database small scale design Help
    By arrow in forum Database Design
    Replies: 4
    Last Post: 01-22-2010, 07:35 AM
  2. Need someone to develope a small database program for me
    By Cleaner in forum Database Design
    Replies: 4
    Last Post: 10-05-2009, 07:21 AM
  3. Small Business Question
    By P5C768 in forum Access
    Replies: 1
    Last Post: 09-28-2009, 08:27 AM
  4. small if statement help please
    By taylorosso in forum Programming
    Replies: 16
    Last Post: 09-23-2009, 11:23 AM
  5. Best way to organize a small database of people?
    By Orabidoo in forum Database Design
    Replies: 1
    Last Post: 06-09-2009, 10:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums