Click here to Skip to main content
15,905,616 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear friends
This is Sarfaraz here. How are you all.

Today i created a setup files for my project and installed it on target computer. All is going good.
But I tried to open the access database which was installed by the setup program of my project. All i get was only 3 records which i have entered at my own computer during coding. But i have entered 100 records through the front end of my project. Why i am not seeing all the records from the backend (after opening database in msaccess)although i can print them all in my reports and can search all the records through my project.



Thank you.
Posted

I can only assume that you have saved them to one database, and are viewing them from another.

Check your file paths!
 
Share this answer
 
Comments
sarfarazbhat 16-Oct-12 11:44am    
Sir I have attached the database with the setup. And it is being installed with the setup itself.
OriginalGriff 16-Oct-12 14:51pm    
That doesn't mean that you are referring to the correct database.
If you are storing and retrieving records in one app, and can't see them with another, that implies that you are accessing two separate databases.
i don't work with access anymore these days but i seem to remember there being an option in the development stage to attach access DB copies to the project which I always clicked do not attach. My guess is you might have created and stored a 'concrete' local copy in the projects folders. by concrete i mean not dynamic.

I had access installed on a server here at work, and used bindingsources and table adapters to load current data like:

me.programsTableAdapter.Fill(me._yourAccessLinksDataSet.programs)

these other computers only required the access engine which is free to download and could connect via a connection path in string "server\folder\myDB.mswtfdb"

you could also save any changes made back to access by simply updating the datasets you've attached to access.
 
Share this answer
 
v2
Comments
sarfarazbhat 16-Oct-12 11:44am    
Sir I have attached the database with the setup. And it is being installed with the setup itself.

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