Try going to Project / Properties / Publish and hit Application Files. Change the Publish Status of the db to Data File. I'm sssuming your publishing as click once and you want the db in the data directory because thats where your copying it to.
What does your connection string look like?
my connection string look something like this
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\UTMPOSS4.accdb
I have try to publish one again, but this time when i run the apps it crash and show error like this
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: utm point of sale software.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 4ea5ec44
Problem Signature 04: System.Data
Problem Signature 05: 4.0.0.0
Problem Signature 06: 4ba1e064
Problem Signature 07: 1ea3
Problem Signature 08: 87
Problem Signature 09: System.InvalidOperationException
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
How do i solve this? thank you again.