Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an attendance machine from where I can fetch data via IP and it stored in a PC as text file. Now I want a simple application (as simple as possible) where I can enter the employee details, can create some reports.
I was thinking to do that in MS Access. I have created some tables as well (employee table, attendance table) in access. but how to connect the text file with access and how to read the text file?

Hope I can make understand. If somebody can help me, that would be appreciate. I don't want the exact solution, but the way to solution the problem.


Thanks in advance
Posted

1 solution

Connecting a text file with Access is not going to do anything useful - you need to provides code to read the text file, break it into it's "groups" of data and transfer those into row based information for Access tables.

Probably the easiest way is not to use a text file in the first place - transfer the data directly into a DB instead and you aren't "double handling" the data which can only ever introduce complications and errors.

We can't tell you what to do with the text file exactly - we have no idea whatsoever what it contains, or how it is organised - so you are going to have to look at your data and work out out to extract the relevant info!
 
Share this answer
 
Comments
Member 11689494 17-May-15 4:30am    
Thank you very much OriginalGriff for your suggestion. at first the text file should be read by the code and break into groups and then transfer to a DB. my text file format is below:
0012803151737460000000591011ùó
can u plz suggest me of how to read this file
first 3 digit - machine number (though i have one machine)
next two digit - date
next two digit - month
next two digit - year
next two digit - hour
next two digit - minute
next two digit - second
next ten digit - card number
rest - dont know (probably showing present/absent)

if you have any help on this, plz let me know

thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900