Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a web application which is working perfectly fine. i have the following controls/buttons on each page; add record,edit record,search record,delete record. all the buttons works perfectly.

Now i have decided to add a search page(the landing page) where one has to check for existence of the record. one has to select the year(from dropdown) and enter an EmployNumber.if the employee exist it should display his firstname,surname,department,location in the textboxes below the page.if his other records for that year are not entered,one should be able to click add record button on the form and direct to other forms where you can add data for him without entering his name and employnumber for him.This should be the same for edit button.i want searching to be done once on search page rather than on each page

sample code will do me better
Posted
Comments
[no name] 24-Jul-12 19:56pm    
"sample code will do me better"... I am sure it would. You failed to mention how much you are paying for someone to write this code for you. Not that you will find anyone here that is going to do it.
mayeso 25-Jul-12 0:43am    
i have seen sample codes here which were not paid for,its good to say somethings politely. am i the only one who asked for sample code? why are there so many sample codes on this site? its you who dont want,dont lead others into your thinking, its better sometimes to be quite if you dont want to help

There are many ways to do it:

1. Declare a Global Variable on the Main Form which can be updated from the Child Form.

2. Use a temporary file to save and re-read the data... Not the best way.

3. Use the Windows Registry.

Option 1 above would be your best bet.

There are plenty of examples on how to do #1 on the web.
 
Share this answer
 
Sorry but I was trying to be helpful on giving you ideas how to get it done... I had 5 minutes between working on projects and wasn't able to look up which one worked best for me.

One thing that worked in the past was to call a function on the MAIN Form from the Child Form and pass a variable or set of variables to a routine of what changed then take the updated variable details then update them in the routine in the main form.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900