Re: A complicated case with continous form



"heroddaji" <u45664@uwe> wrote in message news:890b2164de73b@xxxxxx
Hello, Can anyone help me with this case?
I have to display the working hours of workers in a form ,so I use continuous
form to display those values. the worker have 2 types of working hours, first
is 100% hours, 2nd is 150% hours.
If that guy work only 100%hours, then only show it. if he work also with 150%,
show 2 type of hours, and finally , if he work only 150%hours, show only 150%
hours. Here is an example

name percent hours
-------- ---------- ---------
a 100 8
-----------------------------------
b 100 7
-----------------------------------
c 100 9
150 2
-----------------------------------
d 150 4

my method is I use 2 text box for 100% and 150%, if that worker dont have any
150% hours,i will hide that textbox, so it take me 2 lines to keep 2 textbox
per worker, and make the form look not nice.( for example, if all the worker
have only 100%hours, the 150%hours is still there and take a lot of line).
I want to do something like if the worker dont have that kind of hours, the
line must be not there

my method example
name percent hours
-------- ---------- ---------
a 100 8
//this line is hide, because it have 150%hours textbox , while it support to
be for worker b
-----------------------------------
b 100 7
//this line is hide, because it have 150%hours textbox , while it support to
be for worker c
-----------------------------------
c 100 9
150 2
-----------------------------------
//this line is hide, because it have 100%hours textbox , while it support to
be for 150%hours.
d 150 4



This would be a lot easier to do with a report, not a form, because a report can use grouping and the Hide Duplicates property to handle this easily. In a continuous form, I can't think of a way to do it. In single form view, one could resize empty text boxes on the fly, but that won't work on a continuous form.

Could you use a report instead? Failing that, can you just make it one line across for each worker, with the different types of hours in separate columns?

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

.



Relevant Pages

  • Re: Grouping Footer Queries
    ... What do you mean by "need to use "Count" expression to get the total amount ... Maybe you need to type in a few records and the desired display in a report. ... In order to count the number of MC a worker take. ...
    (microsoft.public.access.reports)
  • A complicated case with continous form
    ... I have to display the working hours of workers in a form,so I use continuous ... my method is I use 2 text box for 100% and 150%, if that worker dont have any ... 150% hours,i will hide that textbox, so it take me 2 lines to keep 2 textbox ... //this line is hide, because it have 150%hours textbox, while it support to ...
    (microsoft.public.access.forms)
  • Re: HOW TO SHRINK OR GROW COMBO BOX
    ... use a textbox to display the data. ... ever use on a report are textboxes and checkboxes. ... "Glint" wrote: ... is the first non-zero width column you want to display in the combo box. ...
    (microsoft.public.access.formscoding)
  • Re: HOW TO SHRINK OR GROW COMBO BOX
    ... use a textbox to display the data. ... ever use on a report are textboxes and checkboxes. ... Then, in the GotFocus event of the combo, change the width of the combo ...
    (microsoft.public.access.formscoding)
  • Re: Whats a E+04?!?!
    ... >Now, this form is EXACTLY like the previous; the macro, query, report and ... If a Number field is too large to display in a textbox, ... Access switches to a truncated scientific ...
    (microsoft.public.access.forms)