PC Review


Reply
Thread Tools Rate Thread

Adding data from a table to a subform with DLookup

 
 
A_Classic_Man
Guest
Posts: n/a
 
      12th Jan 2011
I have a form, frmTradeOff, which has a subform named frmTradeOffSub.
The frmTradeOffSub has a control called TradeWith which gets EmpName
from a lookup table entitled tblEmpName. On the frmTradeOffSub, there
is a control called TradeWithIDNum that I want to get IDNum from the
tblEmpName by using DLookup.

I am having problems figuring out the code since I am working with a
subform. Help is appreciated

Ron
 
Reply With Quote
 
 
 
 
Jim Bunton
Guest
Posts: n/a
 
      1st Feb 2011
Your posts been here a while with no response so maybe you've solved your
problem now.

This post isn't a proposed solution I'm afraid it's just to say that maybe
you have't got any proposed solution because it's difficult to understand
your problem.

I think that you need to provide
the query data that the main form retrieves [leaving out irelevant columns]
same for the sub form
the field names of the link fields

It may be clearer just to call the forms Main and Sub here

Hope this helps

Jim Bunton

"A_Classic_Man" <(E-Mail Removed)> wrote in message
news:1f5d4627-4dda-49fa-a93b-(E-Mail Removed)...
>I have a form, frmTradeOff, which has a subform named frmTradeOffSub.
> The frmTradeOffSub has a control called TradeWith which gets EmpName
> from a lookup table entitled tblEmpName. On the frmTradeOffSub, there
> is a control called TradeWithIDNum that I want to get IDNum from the
> tblEmpName by using DLookup.
>
> I am having problems figuring out the code since I am working with a
> subform. Help is appreciated
>
> Ron



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use DLookUp to Enter Data into a Table Sara Microsoft Access 3 15th Oct 2008 04:55 PM
How can i use dlookup to display data in foreign table =?Utf-8?B?dGJveWNl?= Microsoft Access VBA Modules 5 26th Oct 2005 09:02 AM
Adding data to a table in a subform =?Utf-8?B?SXRhbGlhbiBQZXRl?= Microsoft Access Forms 0 25th Jan 2005 12:17 PM
adding data to a table in a subform =?Utf-8?B?SXRhbGlhbiBQZXRl?= Microsoft Access VBA Modules 0 20th Jan 2005 11:57 AM
Adding data to the data table without adding a data marker to the chart BA Microsoft Excel Charting 2 19th Nov 2003 09:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 AM.