08-27-2015 10:56 PM
I've created a program to save a new staff particulars. The problem I have is when I'm entering the hired date (which is the system date) for the staff, it shows up as "1/1/1904" when running it as an executable. It works normally when running as a normal vi. Can anyone help me please? It's urgent as this is my last day of intern at my company doing this.
08-28-2015 04:37 AM
It would be easier to help, if you shared all necessery files. Zip the whole project, and attach it. I cannot even run your VI since it is broken due to missing typdefs...
08-28-2015 04:40 AM
My bad. Here's all of the necessary files
08-28-2015 04:43 AM - edited 08-28-2015 04:48 AM
I wonder how do you create the EXE? You do not have any project in the zip...
Why do you need to use .NET DateTimePicker? You could just use a simple Timestamp control...
edit: and put your Date_Time control into an Event case, so if the user changes the date/time, it fires the Event case, and you update the indicator.
As I see you have also many bad design desicions in this code, possible race conditions (you use an indicator as data storage for example...)
08-28-2015 05:12 AM - edited 08-28-2015 05:13 AM
Apologies. You can try compile the single vi as an executable.
I have tried using the standard LabVIEW timestamp control beforehand but it still gave me the same result.
As for using indicators for data storage, I only need the data when the user hit save and it will be stored to the database (Access file) with SQL queries
I did not have any training or whatsoever in LabVIEW. It was 100% self-learnt.
08-28-2015 05:43 AM
08-28-2015 06:47 AM - edited 08-28-2015 06:48 AM
There are several bugs in the VI: