DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us