R
rocco
Hello,
I’m in the process of designing a form to be used to show the list of
records collected in a table. It is basically a continuous form, but its
record source is a SQL statement with just FEW of the fields of the original
table, and the data are not editable; the form acts just as a sort of
archive. At the beginning at each row in the form there is an icon - a small
magnifying glass – by clicking on which another form will pop up, showing ALL
of the data collected in the table for a well identified record and the user
can also edit them. The normal functioning would not allow me to link the
small icon to each row (record), thus I kind of fake it by having a text box
and making it as small as the picture frame and arranging it on top of the
picture frame. Then I made the textbox background transparent and no border
and changed the SQL statement to have another field from the table, the
primary key, and bounding the textbox to this field. Now by clicking on any
small icon I actually click on the textbox and I wrote code for the OnClick
event to use its value to retrieve a precise set of the data to be used to
fill the form that will pop. Obviously there is the problem that I cannot
hide the content of the textbox and this will ruin the design of the small
magnifying glass, resulting in some ugly symbol. I overcome this problem by
changing, once again, the SQL statement and concatenating 10 spaces before
the field value. This will make the text that fill the textbox “invisibleâ€
(it is out of the range of its width). I will then use the TRIM function to
get rid of the blanks before using the value in the code. I will have your
guessing to have the same feature but maybe with a more clean design.
Thanks!
Rocco
I’m in the process of designing a form to be used to show the list of
records collected in a table. It is basically a continuous form, but its
record source is a SQL statement with just FEW of the fields of the original
table, and the data are not editable; the form acts just as a sort of
archive. At the beginning at each row in the form there is an icon - a small
magnifying glass – by clicking on which another form will pop up, showing ALL
of the data collected in the table for a well identified record and the user
can also edit them. The normal functioning would not allow me to link the
small icon to each row (record), thus I kind of fake it by having a text box
and making it as small as the picture frame and arranging it on top of the
picture frame. Then I made the textbox background transparent and no border
and changed the SQL statement to have another field from the table, the
primary key, and bounding the textbox to this field. Now by clicking on any
small icon I actually click on the textbox and I wrote code for the OnClick
event to use its value to retrieve a precise set of the data to be used to
fill the form that will pop. Obviously there is the problem that I cannot
hide the content of the textbox and this will ruin the design of the small
magnifying glass, resulting in some ugly symbol. I overcome this problem by
changing, once again, the SQL statement and concatenating 10 spaces before
the field value. This will make the text that fill the textbox “invisibleâ€
(it is out of the range of its width). I will then use the TRIM function to
get rid of the blanks before using the value in the code. I will have your
guessing to have the same feature but maybe with a more clean design.
Thanks!
Rocco