subforms

New record in subform based on ID of main form

僤鯓⒐⒋嵵緔 提交于 2021-02-10 18:27:05
问题 First I want to say that I'm a beginner in Access, and I will appreciate every bit of help I can get. I have created a form showing records from one of my tables with three subforms. The record and the subforms has a one-to-many relationship. I am now creating buttons for each of the subforms for creating new records in the subforms. I've managed to make the buttons and used the Macro builder to open the forms in a dialog mode with Add as data mode. Openform (New recordSub1; Form; ; ; Add;

Binding a combobox in subform Access

笑着哭i 提交于 2019-12-08 04:43:29
问题 I have a subform which has the correct Source Object, Link Master field and Link Child field parameters. I can create a combobox in the subform which shows the correct information in the drop down menu (same table as the source object of the subform), but is unbound and does not update the record in the main form. Does anyone know how this might be fixed? (note the relationship between Master and Child is over multiple tables, but has referential integrity and cascade updates enabled) 回答1:

Access 2010 Audit Trail on SubForms

坚强是说给别人听的谎言 提交于 2019-12-01 12:52:41
I am having trouble getting the code I found for an audit trail to work with sub forms. The origninal code is from http://www.fontstuff.com/access/acctut21.htm . I would rather stick to this code than using Allen Browne's code http://allenbrowne.com/appaudit.html . It seems to be a problem with Screen.ActiveForm.Controls . I have read that this does not work with sub forms. Is there a way I can alter this to audit a sub form in my database? When I record the data in the sub form, I get the following error: Microsoft can't find the field "CalSubID" referred to in your expression." In a module I