I'm trying to create a program which requires a user to login as either an admin or a regular user. For the regular user, after login in, they can create some records and save them in a databse. The regular user can also view records created by other regular users by entering the record number. For admins, after they log in, they can create new regular user accounts or view a list of the regular accounts that that particular admin created. There are several admins and each admin can create a regular user account. When an admin logs in, they can view the regular accounts they created on a listbox and when they click on one regular accont and click on a button 'show records', they can view whatever that regular account user saved.
I don't know how to go about this data association. Can anyone help (hope my explanation is clear)
This post has been edited by jokham: 01 June 2010 - 06:56 AM
I'm a beginner at c#. Have been using it for a few months. The program is a desktop application. I havent started coding, first I'm planning it out. Here is a basic image of the regular user GUI. The user can get a previously created record and write a new entry to it using the textbox below and the new entry gets writen to the textbox on the right (if there was a previous entry, it adds to it). The entries get saved by first recording the time it was made followed by a space and then the entry writen by the user and when a new entry is made, a line is skipped before the entry is written to the textbox.
HOW DO I INSERT AN IMAGE BELOW MY POST? The 'insert image' in the text editor needs a URL
Yeah, I'm going to use a database. The record name can be any unique identifier. I might use a person's name or an ID number. So when I enter that persons details and press get record, I'll see what I wrote about that person and the day the entry was made and I can add to that.