
Originally Posted by
June7
Could run an UPDATE sql action. What data would be added?
The 'Add New Profile' button just needs to move to new record row?
Doubt I would move code into general modules. Unless a procedure will be used by multiple forms, why not have it behind the form using it? Your code is form-specific, not generic, so putting it in a general module just adds complication to the structure.
Dont know why i like having them in modules. I have always done it this way.
It seems to work... but if it is bad for the program to have it like this i could change it. But if it is no matter i rather keep it like this.
I have worked out how to add new profile
But could you elaborate more about how to add a value to the selected log row when clicking a button.
I want the value "KLAR" to be added when a user click on a button. The value should be stored in log_table in the column called "HRWEBB CHECK"
The value should only be added to the row that the user have selected.
EDIT
Reading a bit i found this code....
Code:
UPDATE tblCustomers
SET Email = 'None'
WHERE [Last Name] = 'Smith'
But im wondering how to specify the selected row in the listbox.
If i had a field with the Log_id in the profile_form
maybe i could take that value and specify the WHERE statement?
Like this
Code:
UPDATE tblCustomers
SET Email = 'None'
WHERE [Log_ID] = txtLog_ID
txtLog_ID is a textbox displaying the selected Log ID.
But if this is the way, i dont know how to get the Log_ID into the textbox...