Adding new records

BradM

New Member
Joined
Jan 27, 2005
Messages
45
Hello,

I am having a problem with a form for adding new records. What I have is a list of companies and I have multiple projects for each company(They are in separate tables). When I want to add a new project for a company I select the company and have an add button that brings up the form with all required fieds. I have a locked field at the top with the company number but I can't seem to get it to automatically have the company number I selected in the previous form.

I think I need to use the expression builder but I can't seem to get it to work,

Here is what I have.

=[Forms]![Frm_Main]![company_no]![com_index_no]

Frm_main = Main form
Company_no = box that I selected in previous form
com_index_no = field in column in that box that I what to appear inteh new form


Thanks,

Brad
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I have it working it was a syntax error but does anybody know how to reference a column other that the first one from a list box?
 
Upvote 0

Forum statistics

Threads
1,214,851
Messages
6,121,931
Members
449,056
Latest member
denissimo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top