Update a table via a Form with Data from Inputs on the Form and from another table - forms

being new to coding I have run into a wall. I am attempting to update a table "Data_Tbl" from a Form "Form1" with inputs, and a value from a second table "Temp_Tbl" (Which contains predetermined temperature data) based on a Temperature keyed into a field on the Form. My "Temp_Tbl" has 2 fields "Temp" and "TDS" while the "Data_Tbl" has 3 fields to gather data from the form and "Temp_Tbl", "Serial", "Temp" and "TDS". I would like to populate the "TDS in the "Data_Tbl" from the "Temp_Tbl" based on the "Temp" keyed into the "Form1" and send it to the table "Data_Tbl" I have attempted to use the answers put forth in this site but to no avail. All I get are errors with the code. I am slightly familiar with VBA. Any help would be appreciated. I have tried so many things, I don't know what to put as an example.

Related

Create a dynamic table in a PDF Form programmatically

I need to generate a pdf based on a template form.
In that form there is a table that needs to be populated.
Since the table can have a unknown amount of rows, what I was thinking was drawing the table and then adding it to a space on the form.
As in, the form would have a acrofield to receive the table itself.
I already managed to create the table and put it inside a pdf, but I'm having issues puting that table into a acrofield.
As far as I can understand a form only appears to accept these: button, text, choice, or signature.
I'm using Apache pdfbox and easyTable to manipulate the form and create the table.
Is it possible what I want to do? If so, where can I find more information about this topic?
Edit: This answer seems to be what I want to do.

Input data into a table using DLookUp in Access

I am using a Data entry continuous form to input data into a table named 'Order_History'. All fields successfully input their data into that table except for one. I have a text box that uses DLookUp to get the value from a combo box on that form and use it to select data in hopes of entering it into the table. The DLookUp is getting the data from a different table named 'Postcodes'. I assume that the reason the others work is because the control source is linked to columns in the table.
Is there a way I can link this text box (Drop_Number) to the specific column in my Order_History table while still using DLookUp to get the values?
My DLookUp code:
=DLookup("Drop_Number", "Postcodes", "Postcode = [Forms]![Order_Form]![Postcode_cb]")

How I can add a row and input field on button click in lotus note 8.5. form?

I have question about Lotus Note. I have form: http://i.stack.imgur.com/YWii6.jpg
In this form I need create bottom. With this buttom user can add new row with input field in this row to existing table. I find that kind of lotusscript from:
http://www-01.ibm.com/support/knowledgecenter/SSVRGU_9.0.1/com.ibm.designer.domino.main.doc/H_EXAMPLES_ADDROW_METHOD_RTTABLE.html
But when I this script copied to this form, I get error "Object variable no set"
Then I tried this solotion:
LotusNotes 8.5 - Adding a row to a table with a button
And I again get the same error.
Can anybody tell me please, how I can create new row and input field in this row, when I pressed buttom "Add row"?
You can't make a table with a dynamic amount of rows in a Lotus Notes Form. There are two common ways to solve this:
Use child-documents; one document for each row; and show these documents using an embedded view. This is the most elegant imho.
Create a large, fixed-elements table, and hide the rows that are not needed (for instance, by checking the presence of an input in the preceding row. This is OK for small amounts of row, but performance starts getting bad if you have too many rows.
It seems you are a bit confused as to the difference between a form (your picture) and a document (the code you link). Also, you definitely need to understand the meaning of "Object variable not set", which is the most common error when you use Lotusscript.
Anyhow, where to go from here depends on how you plan using the data once it is input. Will it be edited ? Will each row need to be handled as a separate record ?

Cannot see records in form bounded to table in Access

I have a form and it's record source is a table. I created the form separately and added the control sources to the different fields in the form and also changed it's record source. I imported values from an excel sheet into the table and when I open the form, I do not see the tabe values being displayed in the form. Any idea what I should do to see the table records in the form?
In form design mode, check the form's DataEntry property. It sounds like yours is set to Yes, which hides existing records and only allows new entries. Change it to No and you will see the existing records.
Another possibility is that a filter is active and no records match that filter.
Use a form wizard to generate a working form based on your table. Then once you can see the data being displayed in the form, customise as needed.

Inserting rows in form datasource, insert is OK, rows are not visible

Basically, I want to insert rows in the form InventJournalTransfer. I added a menuitem button that calls a class which opens a dialog where I fill a WMSLocationId, then I loop on Inventsum table to get all ItemIds with Available qty for this WMSLocationId and insert them into InventJournalTrans Table.
The code I wrote seems to be working as I have correct records inserted in my table(visible in Table browser, correct journalId, linenum itemId, qty etc...) BUT the records inserted do not appear in my form. I tried to refresh my form with or without code, but my grid's still empty.
I had a look at the class InventCountCreate that does what I want to do in a different journal type, but as I'm quite a newbie it is difficult for me to understand exactly how this class works.
Could anyone explain to me how to display my inserted rows in my form or give other leads?
The InventJournalTrans is table is inner joined to two InventDim, one related via the InventDimId field, the other via ToInventDimId.
Both fields must be filled with a valid InventDimId to an existing InventDim record for the form to show the record.
Have you tried right-clicking on your form's node in the AOT and clicking "Restore"? Perhaps your form is still using cached data.