Re: field from other table
From: Steve Schapel (schapel_at_mvps.org.ns)
Date: 06/05/04
- Next message: Steve Schapel: "Re: field from other table"
- Previous message: drdunit: "Unbound field results are different then Query w/the same criteria"
- In reply to: Mark R: "Re: field from other table"
- Next in thread: mark R: "Re: field from other table"
- Reply: mark R: "Re: field from other table"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 05 Jun 2004 17:22:18 +1200
Mark,
I can't really answer because I know nothing about what your main form
and subform are all about, or what you want to achieve. However, it
looks like you might want to set the value of all related subform
records... is that right? If so, I would do this...
Combobox_Afterupdate()
CurrentDb.Execute "UPDATE SubTable SET YourField ='" & Me.MyCombo &
"' WHERE ID=" & Me.ID
End Sub
-- Steve Schapel, Microsoft Access MVP Mark R wrote: >>by making the combobox unbound, and then using a VBA > > procedure on its After Update event to "put" the data into > the subform record. > > Combobox_Afterupdate() > > Set rs = NotMainTableName.recordsetclone > > With rs > .Find "ID = " & Me.ID > .Edit > NotMainTableName!insdatafieldname = unbounddataheld > .Update > End With > > ============= > This is a skeleton , but specifically what do I have to > do?
- Next message: Steve Schapel: "Re: field from other table"
- Previous message: drdunit: "Unbound field results are different then Query w/the same criteria"
- In reply to: Mark R: "Re: field from other table"
- Next in thread: mark R: "Re: field from other table"
- Reply: mark R: "Re: field from other table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|