MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/visualbasic/comments/gn8qcr/urgent_saving_data_into_access_issue/fr8bb22/?context=9999
r/visualbasic • u/bouoron • May 20 '20
16 comments sorted by
View all comments
1
I'm just making best guesses, do you need to manually close your access connection on close? Does your app include any code for deleting records?
2 u/bouoron May 20 '20 the connection closed base on the code and I don't have any code that deleted the record 1 u/RJohn12 May 20 '20 any code for deleting ANY records? 2 u/bouoron May 20 '20 nope 2 u/RJohn12 May 20 '20 the clue is that whatever happens is happening when the app starts, so I'd start looking therecan you manually add records to the table in access? Do they stay there? 1 u/stapper May 20 '20 Without looking at the code it's hard to see, but could be a clean access file is recreated at startup.maybe do a if File.exists(accessDatabaseFile) 1 u/bouoron May 20 '20 manually add makes it stay there
2
the connection closed base on the code and I don't have any code that deleted the record
1 u/RJohn12 May 20 '20 any code for deleting ANY records? 2 u/bouoron May 20 '20 nope 2 u/RJohn12 May 20 '20 the clue is that whatever happens is happening when the app starts, so I'd start looking therecan you manually add records to the table in access? Do they stay there? 1 u/stapper May 20 '20 Without looking at the code it's hard to see, but could be a clean access file is recreated at startup.maybe do a if File.exists(accessDatabaseFile) 1 u/bouoron May 20 '20 manually add makes it stay there
any code for deleting ANY records?
2 u/bouoron May 20 '20 nope 2 u/RJohn12 May 20 '20 the clue is that whatever happens is happening when the app starts, so I'd start looking therecan you manually add records to the table in access? Do they stay there? 1 u/stapper May 20 '20 Without looking at the code it's hard to see, but could be a clean access file is recreated at startup.maybe do a if File.exists(accessDatabaseFile) 1 u/bouoron May 20 '20 manually add makes it stay there
nope
2 u/RJohn12 May 20 '20 the clue is that whatever happens is happening when the app starts, so I'd start looking therecan you manually add records to the table in access? Do they stay there? 1 u/stapper May 20 '20 Without looking at the code it's hard to see, but could be a clean access file is recreated at startup.maybe do a if File.exists(accessDatabaseFile) 1 u/bouoron May 20 '20 manually add makes it stay there
the clue is that whatever happens is happening when the app starts, so I'd start looking there
can you manually add records to the table in access? Do they stay there?
1 u/stapper May 20 '20 Without looking at the code it's hard to see, but could be a clean access file is recreated at startup.maybe do a if File.exists(accessDatabaseFile) 1 u/bouoron May 20 '20 manually add makes it stay there
Without looking at the code it's hard to see, but could be a clean access file is recreated at startup.
maybe do a if File.exists(accessDatabaseFile)
manually add makes it stay there
1
u/RJohn12 May 20 '20
I'm just making best guesses, do you need to manually close your access connection on close? Does your app include any code for deleting records?