Nemesis09
Active member
Hi all,
I'm writing a program which is in two parts, firstly.
Sales:
The "Sales" side of the software is just one form with several textboxes, a few checkboxes, a combobox and one button. The idea is that each person in sales has this running on their screen while with the customer, then as their talking to them they fill out this form and when their done they hit the "Submit" button and (at the moment) the program opens a text document and adds a line to it containing the data from the form.
Ordering:
The staff who order stock, send it out to customers and stuff like that have another program which (at the moment) consists of a form which is filled with one DataGridView which displays basic info about each order request (each row in the text file/each set of data submitted from the "Sales" app. When they double click on a row in the datagridview it opens a second form (which is actually identical to the "Sales" form except its read only) which displays all the details for that order request ie. all the data on that line in the text file.
This all works fine except that now I need to add the ability (probably via a checkbox on the details form of the "Ordering" side of the program) to mark each request as "Done" and have it saved in the data file as such, ie. another (Boolean) value in each row indicating whether its done or not.
I cant find a way to do this using the text file method curently in place. It seems that the best thing for me to do is to start using a .mdb database or excel file or something like that so I can hopefully have the Ordering side of the software just change that one value in the file, like in a datagridview rather than reading the whole file and writeing it back which just wont work in this situaion.
All this seems ok except that the datagridview in the "Ordering" software must be up to date all the time (at present it re-reads the txt file every 5 seconds), and the "Sales" software needs to be able to add a row of data to this file at any time. This was ok with the text file but using a database/excel file means that the "Sales" software wont be able to access it as the "Ordering" software will always be accessing it.
I know this was painfully long winded, but any help or suggestions will be greatly appriciated.
Thanks.
I'm writing a program which is in two parts, firstly.
Sales:
The "Sales" side of the software is just one form with several textboxes, a few checkboxes, a combobox and one button. The idea is that each person in sales has this running on their screen while with the customer, then as their talking to them they fill out this form and when their done they hit the "Submit" button and (at the moment) the program opens a text document and adds a line to it containing the data from the form.
Ordering:
The staff who order stock, send it out to customers and stuff like that have another program which (at the moment) consists of a form which is filled with one DataGridView which displays basic info about each order request (each row in the text file/each set of data submitted from the "Sales" app. When they double click on a row in the datagridview it opens a second form (which is actually identical to the "Sales" form except its read only) which displays all the details for that order request ie. all the data on that line in the text file.
This all works fine except that now I need to add the ability (probably via a checkbox on the details form of the "Ordering" side of the program) to mark each request as "Done" and have it saved in the data file as such, ie. another (Boolean) value in each row indicating whether its done or not.
I cant find a way to do this using the text file method curently in place. It seems that the best thing for me to do is to start using a .mdb database or excel file or something like that so I can hopefully have the Ordering side of the software just change that one value in the file, like in a datagridview rather than reading the whole file and writeing it back which just wont work in this situaion.
All this seems ok except that the datagridview in the "Ordering" software must be up to date all the time (at present it re-reads the txt file every 5 seconds), and the "Sales" software needs to be able to add a row of data to this file at any time. This was ok with the text file but using a database/excel file means that the "Sales" software wont be able to access it as the "Ordering" software will always be accessing it.
I know this was painfully long winded, but any help or suggestions will be greatly appriciated.
Thanks.