Create an If/then equation in Access Feild

This is what I am trying to do: I am importing a field into an Access Db called "BusSegment". I have another field called "ISO". The "ISO" field gets populated with people's names. It is dependent upon the "BusSegment". What I want to do is setup some kind of equation so the "ISO" field gets AUTOMATICALLY populated with the corresponding "ISO" name when I enter a certain "BusSegment". How should I go about this? Thanks....

This is basically how the process works. I get an excel spreadsheet with that contains several fields including the "BusSegment". I import that spreadsheet into my DB and then use an append query to create a record for each one. The "ISO" field is not included in this spreadsheet though. I have to come up with that info. Instead of me having to input each "ISO" for each record that I import, I want that field to be auto generated based on the "BusSegment". Is that possible? Thanks....

I am not sure, you are confusing me with the date example. Basically, here is what my data is like:

I have several business segments: transactions services, financial, personel. With each one of these there is a different person handling the issue I put into the db. for transaction service it is linda, for financial it is larry and personnel it is peggy. what i need is when i append transaction services into the bussegment feild, linda is automatically entered into the iso field and so on. does that make sense? thanks..

Is the relationship between BusSegment and ISO defined elsewhere in your database?

For instance, do you have a table which identifies the ISO give the BusSegment?

If so, then it is a relatively straight forward process to add an ISO field to the table you are popluating, and then associate that field with the value in the ISO field in the related table that has the BusSegment from the first record.

Add the ISO field, then in the Design mode of that field, Click on the Lookup Tab, change the Display Control to ComboBox, then on the RowSource line, click on the button at the right with '...' Choose the Table that has the relationship between ISO and BusSegment. Set the Column Count to 2, and Set the ColumnWidths to 0";1" (this will 'hide' the first of the 2 columns, and show the second - which has the ISO Name.

Do you have a table that pairs your people with your segments? That would be the first step.

Let's say your imported spreadsheet table is called TemporaryRecords with a field called BusSegment and the table with people and segment is SegmentRepresentative with a field called BusSegment and another field called RepresentativeName. Then you'd have both tables in your append query design and they'd be joined on BusSegment. In the query, you could then pull down RepresentativeName and append that value to the ISO field in the destination table.

Of course there is a blatent error in the above sql statement in that I have specified more fields in the insert then are selected from the source table - but the idea was to illustrate creating composite fields not how an insert statement works. For the pure at heart ...

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…

Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…