|
|
|
start date: Thu, 19 Jul 2007 02:29:33 GMT,
posted on: microsoft.public.dotnet.framework.adonet
back
| Thread Index |
|
1
mroks via DotNetMonster.com u35438@uwe
|
|
2
shatrughna
|
Automatic filling fields
Hi guys,
could you please help me on my problem.
>>>> --------------- <<<<<<<<<
Datasource: MS Access 2003
Table1: Tbl_Employee
Field1: Emp_name
Field2: Position
Field3: Contact#
Field4: Address
Table2: Tbl_Salary
>>>> --------------- <<<<<<<<<
Windows Form of Visual Basic.net
i have a field Employee on the form, the problem is, i when i type the name
of employee, i want the position, contact# and address to automatically fill
my other fields and will save on my database Tbl_Salary.
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-ado-net/200707/1
Date:Thu, 19 Jul 2007 02:29:33 GMT
Author:
|
Re:Automatic filling fields
you can use join query and retrive the data from master table i.e.
Tbl_Employee to Your Tbl_Salary or You can Set Relation by using same field
Emp_name in both The Table
suppose
Table1: Tbl_Employee
Field1: Emp_name
Field2: Position
Field3: Contact#
Field4: Address
Table1: Tbl_Salary
Field1: Emp_name
Field2: Basic
Field3: Hra
Field4: Da
Query
Select Tbl_Employee.Emp_name,Tbl_Salary.Basic,Tbl_Salary.Hra,Tbl_Salary.da
from Tbl_Employee join on Tbl_Employee.Name = Tbl_Salary.Emp_Name
You Can get the Result
Date:Tue, 24 Jul 2007 01:28:34 -0500
Author:
|
|
|