Hi!
I want to merge two contents of fields from the table and show it in the combo box and when one is selected I want to get the Primary key of that value.
Do you remember that Access's form wizard let you create combo box and in doing so it let you do what i am trying to do.
Ex)
TblName
ID
Name
TitleID
TblTitle
TitleID
TitleName
When I create a form for the Name table(data entry form) I used the combo box wizard to show TitleName and TitleID(has to option to show the TitleID or not) and When I select the titleName from the combo box, it enters the TitleID in the TbleName.
What I would to do is similar.
I have a table
TblItem
ID
TypeID
TypeDescription
I want to do:
1) Merge TypeID and TypeDescription
2) Insert them in the combo box
3) when select from the combo box, I want to get the ID of TbleType
ID TypeID TypeDescription
1 1.a abc
2 1.b.3 dfdfd
4 3.4.d fdfdfd
from this to combo box =>
1.a abc
1.b.3 dfdfd
3.4.d fdfdfd
when I select on from the combo box
I want to get the
ID.
Could I need to do this in several step using the vbs or can this be done simpler way like first example??
Thank you for your help.
I want to merge two contents of fields from the table and show it in the combo box and when one is selected I want to get the Primary key of that value.
Do you remember that Access's form wizard let you create combo box and in doing so it let you do what i am trying to do.
Ex)
TblName
ID
Name
TitleID
TblTitle
TitleID
TitleName
When I create a form for the Name table(data entry form) I used the combo box wizard to show TitleName and TitleID(has to option to show the TitleID or not) and When I select the titleName from the combo box, it enters the TitleID in the TbleName.
What I would to do is similar.
I have a table
TblItem
ID
TypeID
TypeDescription
I want to do:
1) Merge TypeID and TypeDescription
2) Insert them in the combo box
3) when select from the combo box, I want to get the ID of TbleType
ID TypeID TypeDescription
1 1.a abc
2 1.b.3 dfdfd
4 3.4.d fdfdfd
from this to combo box =>
1.a abc
1.b.3 dfdfd
3.4.d fdfdfd
when I select on from the combo box
I want to get the
ID.
Could I need to do this in several step using the vbs or can this be done simpler way like first example??
Thank you for your help.