Access - VBA Script

I have a sub form which needs 2 fields updated one is numeric and the other is text both are using text boxes as the control source. I have searched the web and my book references but stuck on getting the input from the user for these two fields and updating the input at my target table.

One question is can I update my target table using the dynaset and form I used to build my resultant query? You see, I am successfully creating a dynaset with a button that runs a select query. The resultant dynaset however needs to be connected to the table with the 2 fields I want to update because its form has the 2 textbox control sources.

At this point, I am thinking the only way to get at my target table is with VBA. Am I correct? And if I am correct, then there are many things to decide; one is whether to update onclick or after update, but that would be minor I am hoping.

This may be simple to someone out there, but for me at the moment its been killing me for at least the past weekend and now into this week!

Will someone please point me in the right direction? An example of a subform resultant subsequesntly passing update information to a table would be perfect

[1187 byte] By [phpx2pperl] at [2008-1-10]
# 1

I'm not sure I'm understanding your concern correctly, but, just in case ...

This DOES sound like a case where a bit of VBA would be useful. It may be best if you have a button alongside your two controls, that, when clicked, will save the data - or perhaps you could do it with the button that runs the query. Then you would need to write the code, and could make it use a RECORDSET to update the relevant table.

This probably doesn't answer your question, but we'd need to see more of what you're trying to do to be able to give a better answer!

mnptl at 2007-10-3 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...