Re: Filling in a field based on data in another table

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Make the Custeomr_Number entry into a combo box with with the second column
of the Row Source returning the Customer_Name. Then in the after update
event of the combo box, use code like:

Me.txtCustomer_Name = Me.cboCustomer_Number.Column(1)

This makes some assumptions regarding your control names.

--
Duane Hookom
MS Access MVP
--

"bvdahl" <bvdahl@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:574E8456-D1DC-44F8-A47C-20A398C9B3C1@xxxxxxxxxxxxxxxx
>I have two tables: purchase_orders and customers. Both the tables have a
> 'customer_number' field. In both tables, there is a field called
> 'customer_name'.
>
> I want this field in the 'purchase_orders' table to be updated with the
> corresponding value in the 'customers' table when I fill in a value in the
> 'customer_number' field. However, if 'customer_number' is left blank, I
> would
> like to be able to fill in the 'customer_name' manually.
>
> So, in short, I would like to be able to generate purchase orders without
> NECESSARILY having a customer number.
>
> Any ideas on how to achieve this?
>
> Regards
>
> Baard


.



Relevant Pages

  • Re: Filter address book on PR_EMS_AB_HOME_MDB
    ... them out at the customers, and hopefully one of them will work. ... My two other options so far seems to be one entry at a time with SeekRow ... > OutlookSpy - Outlook, CDO ... that's why I tried to apply the filter to ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Nobody proposing new uk newsgroups - why ?
    ... 'Molly Mockford' wrote: ... >>'Advanced Section' leading to page with entry 'If you are one of the ... >>minority of our customers who enjoy carefully thought out textual ...
    (uk.net.news.config)
  • Re: Fatal Execuation Error - any workarounds available? or help debugg
    ... unexpectedly once or twice a day for our customers. ... The following entry is ...
    (microsoft.public.dotnet.framework)
  • RE: Expanding a named range
    ... You can define your range to include 1 extra row and then insert a new ... I have a CountA function set up to count the non-null values in the ... thus keeping track of how many customers I have for a given product. ... When I create a new row in the table to insert a new customer, that entry ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Problems with Tesco
    ... the closing time the closing time should be the latest time at which ... potential customers may enter. ... closing time should expect to allowed entry and to be served. ... Which means that if any items have been rung up for a customer, ...
    (uk.legal)