Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using control box
Message
De
10/07/2012 09:19:53
 
 
À
10/07/2012 04:46:45
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
01547981
Message ID:
01548010
Vues:
42
>I have 2 tables, user and rank tables. the user table has a foreign key linked to the rank table. When my users open up the new user form, i need to populate the rank foreign key with the rank they select from a drop down box. How can I do this?

I'm sure someone will come up with a more elegant solution, but I'd put the following in the 'lost focus' event, assuming you want that rank information:

Select fieldlist from Rank where Rank.fKey = This.Value

or, if Rank_fKey is defined as a variable,

Rank_fKey = This.Value

Translate as necessary
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform