form design with tabs, subforms, and mulitple sub entry for 1 main entry

misscrf

Registered User.
Local time
Today, 09:51
Joined
Nov 1, 2004
Messages
158
I am currently working on a database, in 3rd normal form, which is for candidates who apply for a job with the law firm that I work for. My issue is with good form design.

I have a main form. Then I have 3 pages on a tab control ( 4 if the type of candidate validates that is is to be shown) Each page has a subform. The subforms can be either single or continuous, I think I am still deciding what I want to lock down this entry form to make entry easy.

my main menu - http://www.geocities.com/misscrf/images/newmenu.jpg

The main form is just for name and email and candidate type. If the candidate type is one of a few types a page becomes visible for specific info information if candidate is attorney type - http://www.geocities.com/misscrf/images/mainentrywith4thpage.jpg ,
otherwise, there are just 3 pages. 1 is for addresses. my old address tab and subform - http://www.geocities.com/misscrf/images/mainentryformaddtabshows.jpg An applicant can have multiple addresses (home, work, school etc), another is for phone numbers. my old phone tab and subform - http://www.geocities.com/misscrf/images/phonetab.jpg An applicant can have multiple phone numbers.

The last page is for the applications for that candidate. application tab with application and acitivity subform -
http://www.geocities.com/misscrf/images/applicationandactivitytab.jpg
A candidate could apply more than once, so they could have more than one application. This will get tricky because the application form has a subform, for the activities relevant to that application. This is like a logical history. Activity - interview scheduled, interview held, offer extended, rejection letter sent, etc.

Anyway, I am looking for advice on many issues. How to best control the subforms, how to make it so that when the user is tabbing it goes from the last field on one subform to the first field on the next subform, and more. My hestitation is that I think I need to make sure that there aren't more address, phone numbers, applications or activities needed to be added at that time. My next hesitation is that I don't want to be stopping the user with messages every 5 seconds.

I have been playing around and consolidated the phone and address, and taken all maintenance buttons off of the entry form. I think this is a better direction, but I am still not sure how to make this look and work in a solid manner.

maintenance menu for maintenance types - http://www.geocities.com/misscrf/images/maintenancemenu.jpg

my new consolidated tab for address and phone - http://www.geocities.com/misscrf/images/contactinfo.jpg

Here is the issue. If you look at the address and phone subforms (consolidated onto one tab) , you see that there are fields for 1 record, and an add button.

I am trying to figure out how to format and set up my subforms, so that the tabbing can go straight through from the first field (salutation) to the last field on this form, which is Followup/followup notes, on the activity subform.

The thing is that I need to account for the possibility that a user would need to enter in multiple addresses, phone numbers, applications, or activities.

I do not know how to make this appear on the form in a way that will make sense to the end user.

The old phone tab (http://www.geocities.com/misscrf/images/phonetab.jpg )
showed a way of using a continuous form so that when a first phone is added a second record opens up. I think I kind of liked that.

The old address tab (
http://www.geocities.com/misscrf/images/mainentryformaddtabshows.jpg )
shows the form with navigation tab. I didn't like this because when a user tabs from the zip field, the record they are on disappears. It looks that way to the end user. The navigation buttons show that the form has moved to a second record, but the end user might get confused by that setup.

Here is my challenge for applications and activities.

The tab right now ( http://www.geocities.com/misscrf/images/applicationandactivitytab.jpg ) does not account for a second application. I put the previous and next buttons there, but stopped because I was unsure. I could put a new record button there too, since it is single form cycle current record.

The activities has the navigation buttons and cycles all records ( based on application id, which ties to candidate id) but again this has the same problem as address.


Any suggestions would be wonderful. I would really love to see some screen shots as well.

If you would like to see table relationships and detail I have those as well:

http://www.geocities.com/misscrf/images/tablerelationships.jpg

http://www.geocities.com/misscrf/tabledefinitions.html
 
Your Starter for 10 - Tabbing the forms

I had a similar issue about tabbing from subforms and ended up with the following quite nice solution:

http://www.mrexcel.com/board2/viewtopic.php?t=121643&highlight=

My subforms don't every contain more than one reord though.
I'm sure the above should get you started, you could use the code to test if it's the last record, OR if there are more than 1 record you could send the Tab or Shift+Tab to record navigation buttons. I would have them only appear when there are more than 1 record as a visual cue.

Hope this gets you started.
 
I did not get a complete url, could you please repost that?
 
now I'm wondering if it is me or the site.

I am registered there, so I signed in.

Then I did a search on tab subform.

When I clicked on your post, I got a page unavailable. I tried a different post, to make sure your post wasn't removed or something. That didn't work either. Now when I try to go back to the site and search it just sits there like it is loading the search but never getting to it.
I think mr excel is taking a nap. lol
 
I looked at your post, and I have seen others. I think I like the idea of doing an on exit code from the last tab stop field, to the first tab stop field on the next subform. Problem is I can't seem to figure out the right code for referencing a field from one subform to another....

Here are some of the pieces of code I was trying. Please let me know if you can help with how to get the right syntax:

Forms!frmPhoneEntry.cmbPhoneTypeID.SetFocus

docmd.gotocontrol (Forms!frmCandidateEntry![frmPhoneEntry].cmbPhoneTypeID)


Thanks!
 
misscrf said:
I looked at your post, and I have seen others. I think I like the idea of doing an on exit code from the last tab stop field, to the first tab stop field on the next subform. Problem is I can't seem to figure out the right code for referencing a field from one subform to another....

Here are some of the pieces of code I was trying. Please let me know if you can help with how to get the right syntax:

Forms!frmPhoneEntry.cmbPhoneTypeID.SetFocus

docmd.gotocontrol (Forms!frmCandidateEntry![frmPhoneEntry].cmbPhoneTypeID)


Thanks!

It can't be done like that, you can only set the focus on a Control in a Subform form the Main form as in my example. You can set the focus on a Subform but not an actual Control.

My example is seemless to the user.
It also allows you much better control over the events and helps with Shift+Tab etc.

I now actually use a look up table to redirect from the Main form.

So:

LookupID | From | To

You can then be as dynamic as you like.
 
Hi, I'm back.

I got an answer to my tabbing question.

On Error GoTo Err_txtZip_Exit

Forms![frmCandidateEntry]![frmPhoneEntry].SetFocus
Forms![frmCandidateEntry]![frmPhoneEntry].Form![cmbPhoneTypeID].SetFocus

Exit_txtZip_Exit:
Exit Sub

Err_txtZip_Exit:
MsgBox Err.Description
Resume Exit_txtZip_Exit

for those who want it.

Anyway. I am at a new point in my subform testing.

I have a new form view:
http://www.geocities.com/misscrf/images/newsubformview.jpg

It shows 2 forms side by side. They only show 1 record each and only cycle one record.

Here is what I am looking for help on. I want to somehow put a duplicate read-only form under them that shows the addresses and phone numbers if there is more than one phone or address for a particular candidate. Does that make sense? If not, let me know. I can probably make a fake screen shot to show what I want to see....
:D
 

Users who are viewing this thread

Back
Top Bottom