Home > Ask the Microsoft .Net Development Experts > .NET Development with XML Questions & Answers > Setting navigation between different tables in Access
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

Setting navigation between different tables in Access

Daniel Cazzulino EXPERT RESPONSE FROM: Daniel Cazzulino

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 09 April 2004
I am developing a VB.NET interface on top of an Access database. I have two tables in Access. Each form is connected to a table. The tables are related in Access by identification number. How can I set the navigation, so that if the user opens Form 1 and is on Record 5 of Access Table 1, when they navigate to Form 2, they are on the same Record in Table 2? I appreciate any feedback. Thank you, greatly!

>
You can simply pass the ID from the first form to the second, for example, in its constructor, or as a property. The second form, then, can take that value and position its own record. So, Form 1 calling code would be something like the following:
new Form2(currentId).ShowDialog();

Form 2, in turn, adjusts its constructor call to receive the parameter 
and select a subset of the information to display:
 
public class Form2(int id)
{
  //store the ID, filter elements, whatever.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
.NET Development with XML
Modifying XML rows using XSL sheets
Generating Access data as XML for HTML publishing
Editing datagrids, take two
Creating applications to access data via mobile phones
Is it possible to schedule SQLs written for a paradox database?
Questions regarding XML for a decision making tool
Extracting data from Word 6 to populate database
How can I make a connection to a Paradox password protected database?
I have an Access Database that I want to display in a Listview.
Problem with Paradox Connection String

XML and Data
Modifying XML rows using XSL sheets
Generating Access data as XML for HTML publishing
Editing datagrids, take two
Creating applications to access data via mobile phones
Is it possible to schedule SQLs written for a paradox database?
Questions regarding XML for a decision making tool
Extracting data from Word 6 to populate database
How can I make a connection to a Paradox password protected database?
I have an Access Database that I want to display in a Listview.
Problem with Paradox Connection String

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Windows Development - White Papers, News and Expert Advice
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts