thanks guys;
I'm thinking the only way to do this, given the errors, is a step by step process.
Here is what I did:
1.) I copied/pasted in the four different parts of the control, the text box to show time selected, the down arrow button, the box for AM times and the box for PM times.
2.) I then arraigned the boxes in the same design as provided.
3.) I started to cut/paste the code from sample DB to my DB. Pressed Alt/F11 to bring up code window. I had previously imported the form into my project to do the cutting/pasting. The form is closed, but I can see it listed under MS Access Class Objects in the MS VBA window.
4.) the first code I cut/paste was the form open code in the open form event.
5.) the next code cut/paste was for down arrow.
6.) tried to compile, got error of "Sub or function not defined".
7.) I then cut/paste in the code for "SetVisibility" above the code for "cmdShowLists" as in the sample DB to define it. It then compiled.
8.) At this point I ran the form, even though the code for the AM/PM boxes weren't plugged in. Wanted to see what happened. Got error 2950 Reserved Error. When I debugged, the line highlighted in yellow was under Setvisibility and was the first line" Me.cmdShowLists.SetFocus" I commented out that line and then compiled it.
9.) I ran the form again and it didn't give an error. The control on the form had the word "#error" in the text box that was supposed to show the time, probably because it isn't bound to anything yet. I saw that the list boxes were compacted. When I clicked on the down arrow command button, the list boxes both expanded to show AM/PM times to be selected. I clicked on them and they didn't work because I haven't entered in the code behind those list boxes yet.
10.) I entered in the code for both AM/PM times list boxes and compiled.
11.) I changed the form from design view to form view. No errors. I selected the command button and the list boxes came down showing both AM/PM times. So far so good.
12.) I then tried to select either an AM or a PM time and the error I got was Run-Time error 2448 You can't assign a value to this object. If I select an AM time, I get an error that highlights in yellow ".Value = Me.1stDayshift" If I select a PM time, the error is the same only it references the same line in the Nightshift code.
In the error listed in #8 above, my command button is named cmdShowLists. My AM list box is named lstDayShift and my PM list box is named lstNightShift. I thought the numeral of "1" had been used but I see that it is really a lower case "L" "l" and "1" look almost the same but it appears an "L" was used, not a "1".
If I go back and uncomment line #8 as above, I get the same error listed in #8 when I run the form.
Hopefully this helps.....
chris