Your posted code is standard boilerplate for retrieving a Record from the Form's RecordSource. The Form has to have Controls that are Bound to the Fields of the RecordSource. Generally speaking, in order for the Form to allow updates, the RecordSource has to be based on a single Table or on a Query that is based on a single Table.
But you appear to be talking about retrieving Records from a totally different RecordSource! To do that, you'd need a separate Form set up as described above for that Table. You can retrieve related data from a Table that is not the Form's RecordSource, using the DLookup function, but as orange suggested, you really need to tell us, in plain English, exactly what you're trying to do.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007