Search using Popup form

mblack76

Registered User.
Local time
Today, 02:57
Joined
Dec 26, 2005
Messages
13
Greetings all!
I am new to access and trying to build a database but having some real issues with the pop up search. Its a database with personal information so I created three forms
1. FrmMain = The initail navigation page which has just buttons and no records. When you click the cmdFind Resident button, it takes you to the second form...
2. FrmPop Up Resident with Record Source: Resident Name (from FrmResident Parking) . This form has 3 controls; 1textbox (Type Resident Name with Control Source: Resident Name from FrmResident Parking), 2 cmd button (OK and Cancel)
3. FrmResident Parking. This form is supposed to open the Resident Info based on the info entered in the 'Type resident txtbox in the pop up form but does not work.
I have been trying to get this work in Design view but no luck.
I created...
A macro: Find Resident with the following properties...
Form Name: Resident Parking
View: Form
Filter name: Left blank
Where condition: [Forms]![Resident Parking]![Resident Name] Like [Forms]![Pop up Resident]![Type Resident Name]
Data Mode: Left blank
Window Mode: Left blank

In summary what I want to acheive is that; when a person opens the database, they get the FrmMain and if they click find resident to main page, the Pop up form comes up and they type in a name then click ok. This then should open the record on a new form (Resident Parking).
I dont have any queries just one table.
I am not good at VB so any help especially in design view will be very much appreciated
 
Last edited:
Take a look at attached database

Take a look at the attached database. I think it does what you want. I used the wizard to build the VB code - so you can either use the wizard to build the same code in your database or just use this one as a base. I added a ResidentID field and changed your enter resident name to a combo box, so spelling and spaces would not be an issue. Respond if you have more questions.
 

Attachments

Hi,
Sorry for the late reply guys. I was on vacation. I appreciate your help. The form works fine now and I must say I like your suggestion and I would do a few tweaks and use it.
Once again, thank you very much!
Happy new year to all
 
OldsoftBoss,

is there a way to adapt you addition to an ADP


thanks in advance
 

Users who are viewing this thread

Back
Top Bottom