Hello,
I have two tables 1) tbl_Master and 2) tbl_Issue_Codes - this table has two fields: Issue_code and Issue_type.
I want to create a form from the Master table where I select the Issue Code it will auto populate the Issue type using the reference in "Issue_Code" table. Please help! Thanks!
LH
Last edited by Dhoang25; 06-22-2011 at 02:50 PM.
To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.
If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.
Doing this will ensure you get the result you need!
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
=DLookUp("[Issue_type]","tbl - Issue_Codes","[Issue_ID]=" & [Form]![tbl - Master Table]![Issue_ID])
This is the code that I used but it gave me an error stating "#Name?"...Not sure what this means!
That usually means it can't find the table or field. Since your table name has spaces, wouldn't it need to be surrounded by square brackets?
=DLookUp("[Issue_type]","[tbl - Issue_Codes]","[Issue_ID]=" & [Form]![tbl - Master Table]![Issue_ID])
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks