H
Howard
When using a lookup, Access plugs in the following select
statement ...
SELECT [Component Lookup].[Component ID], [Component
Lookup].[Description] FROM [Component Lookup] ORDER BY
[Component Lookup].[Description];
I need to perform the same operation in my code so I can
grab some additional fields from the lookup table.
I was able to grab these fields using the 'on click' event
as follows:
If Component_ID.ListIndex < 0 Then Exit Sub
Supplier_ID.Value = Component_ID.Column(2,
Component_ID.ListIndex)
Part_No.Value = Component_ID.Column(3,
Component_ID.ListIndex)
Unit_Cost.Value = Component_ID.Column(4,
Component_ID.ListIndex)
With what you're going to suggest for above, will these
statements still work. Thanks!
-Howard
statement ...
SELECT [Component Lookup].[Component ID], [Component
Lookup].[Description] FROM [Component Lookup] ORDER BY
[Component Lookup].[Description];
I need to perform the same operation in my code so I can
grab some additional fields from the lookup table.
I was able to grab these fields using the 'on click' event
as follows:
If Component_ID.ListIndex < 0 Then Exit Sub
Supplier_ID.Value = Component_ID.Column(2,
Component_ID.ListIndex)
Part_No.Value = Component_ID.Column(3,
Component_ID.ListIndex)
Unit_Cost.Value = Component_ID.Column(4,
Component_ID.ListIndex)
With what you're going to suggest for above, will these
statements still work. Thanks!
-Howard