Hey Everybody,
I have a command button on a form that opens a table when clicked. The primary key in the table is [Column Name]. Of course, the table displays all of the records that are in it. However, I only want the table to show one of the records. The one record that shows will depend on its corresponding [Column Name]. Originally, the form shows information for each [Column Name]. So, when the user clicks the command button, I want the table information for the [Column Name] that is on the form to pop up. I want to filter out the extraneous records that do not match the current [Column Name] on the form.
I hope this makes sense. My code for the button is found below:
What can I change to make it only select the record that corresponds to the [Column Name] on the form.
Thanks! I hope it makes sense....
I have a command button on a form that opens a table when clicked. The primary key in the table is [Column Name]. Of course, the table displays all of the records that are in it. However, I only want the table to show one of the records. The one record that shows will depend on its corresponding [Column Name]. Originally, the form shows information for each [Column Name]. So, when the user clicks the command button, I want the table information for the [Column Name] that is on the form to pop up. I want to filter out the extraneous records that do not match the current [Column Name] on the form.
I hope this makes sense. My code for the button is found below:
Code:
Private Sub Command257_Click() DoCmd.OpenTable "A - General Details_Old Data", acViewNormal, acReadOnly End Sub
Thanks! I hope it makes sense....
Comment