Click here to Skip to main content
12,950,099 members (61,383 online)
Rate this:
Please Sign up or sign in to vote.
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 24-Jul-12 10:30am
Wes Aday 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
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,829
CHill60 3,460
Maciej Los 2,953
Jochen Arndt 1,975
ppolymorphe 1,820

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 1 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100