Automatically fill table cell

B

Bogga

I need a field for a zone - zone one is classes starting at 9 or 10 AM. zone 2 is classes starting at 11 or 12, etc, etc. Can a table have a field that will automatically fill in the correct zone based on the starting time field of that same table? All the data for that table except the zone field is imported from an excel spreadsheet.
 
T

tina

after you do the import, you can run an update query on the table, using a
Switch() function (or call a public function using the Select Case
Statement, if you prefer to use VBA), as

Switch([StartingTimeFieldName] = "9 am", "Zone1", [StartingTimeFieldName] =
"10 am", "Zone 1", [StartingTimeFieldName] = "11 am", "Zone 2",
[StartingTimeFieldName] = "12 pm", "Zone 2")

set a criteria on the starting time field, as

Is Not Null

hth


Bogga said:
I need a field for a zone - zone one is classes starting at 9 or 10 AM.
zone 2 is classes starting at 11 or 12, etc, etc. Can a table have a field
that will automatically fill in the correct zone based on the starting time
field of that same table? All the data for that table except the zone field
is imported from an excel spreadsheet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top