I want to obtain Numbers from different forms, add them up and display the output in a different form.
For example, There are two forms: Form 1 and Form 2. The information I need is located in Form 1. So I get the numbers from Form 1, add them up and display the result in Form 2.
I am not sure how to proceed here.
Please advice.
Select the text box where you want to output the answer, go to properties > Go to data>Constrol source>click on "..." and type the following code:
Forms!Form_3!Text_3.Value=(Val(Forms!Form_1!Text_1.Value)) / (Val(Forms!Form_2!Text_2.Value))
Related
This is the idea what I would like to get it. I am using Access-VBA but I am struggling to make series like this. Could you please give me an idea how to proceed it.
Thank you in advance.
EDIT 2
How to hide second form like this?
Edit 3
Ok let me make a clear picture.
Imagine that you have one form which requires to enter family member's data for each family. So different family has different number of members. Some family has 5, some has 4 ...
The default page shows only one form for one person so it's |family 1| = area. This form also requires to fill "name/last name/address/whatever..." = width/lenght/xxx for the first person. And then second one needs to be added with the same form "name/last name/address/whatever..." AGAIN by clicking "+" sign until it covers the whole members.
Then second family members also needs the same.
Seems not to be possible, since Access relates rows not columns, but I would like to have the option to edit columns by a form, for example I have the next table:
Table
I want to allow the user to edit and change the actual name of A1, A2 and A3 by the use of a form like this:
Imaginative Form
The form of the image it's just for ilustrate, not sure but maybe this can be accomplished by some VBA code.
When using the form wizard, create a column-based form. You can of course also create the form yourself. In the details section align the fields as desired:
Currently I am working on a form builder,
the user can add input box with different name into the form.
Notice that the form will be stored as HTML code, so the only concern is the input box name storage and submit form value
Now I have draft a table like this
form
-----
id
inputs
------
form_id
name
values
-------
input_id
value
One problem I can think of is the data type of value,
the above design works only if the value is text / textarea
How to handle if the input box is file upload / radio / select?
so are there are Any better design,
thanks a lot for helping.
you have to store element type also. according to the element type,find out which html element it is and render this
You will need an extra table for radio and select, since it has multiple rows for one <input> field.
Don't forget about optional things like id=, name=, style=, class=, etc.
I predict that your finished product will be as clumsy to use as typing the form elements by hand.
I have a continuous form in Access 2010 with a delete button that shows for each record shown on the form. I only want the delete button enabled on the very last record shown. I am stumped how to do it. Any help greatly appreciated. Thanks.
In access there is only one instance of a component on any form - in continuous forms its just copied several times. The only way you can have anything different on any single row in a contiuous form is through data (obviously) and through conditional formatting of a data aware component: the textbox.
And the formatting options are also quite limited. So there are two options: EITHER use a textbox that has the same background as the form and create a conditional format that changes the backcolor for the last row OR create table (ID,PICTURE) with two rows - one with a transparent picture (ID=1) and one with the picture of a button (ID=2) - and link it in the recordsource (Somethig along the lines of: SELECT .... pic FROM yourtable INNER JOIN pictable ON pictable.ID = yourtable.isLastRecord ...
I am trying to allow only certain data to be inserted into an html form field...
i currently have
pattern="[A-za-z]{2}[0-9]{6}"
which works great for a reference number starting with RQ and then 6 numbers.
how can i add another pattern to allow 3 letters with 8 numbers after that?
for example INM12345678
so that users can only use RQ123456 or INM12345678
try this:
/(RQ\d{6}|INM\d{8})/
here is the demo see here
If you want to limit valid data as said in comment:
^RQ[0-9]{6}|INM[0-9]{8}$