Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Setting up Search Form across mutiple tables

$
0
0
I am currently interning at a large corporation and was put in charge of creating a database to collect success stories on a global scale. I am faimilar with access but am having trouble sorting out this one area. I currently have 3 tables all with the same Field Titles. The only difference is that the primary key in 1 of the tables is set to autonumber due to that is the table linked to a user submission form, the others are text because they are static and only updated by myself. I have created a search form based upon the Reference ID field, and cannont get the fields within the form to sync with the other tables. Any help would be great! Here is the code I have used for my search button:

Private Sub SearchB_Click()
If IsNull(Search) = False Then
Me.Recordset.FindFirst "[Reference ID]=" & Search
Me!Search = Null
If Me.Recordset.NoMatch Then
MsgBox "No record found", vbOKOnly + vbInformation, "Sorry"
Me!Search = Null
End If
End If


End Sub


Thanks,

Lee

Viewing all articles
Browse latest Browse all 13329

Trending Articles