dbTalk Databases Forums  

Re: Using DoCmd.FindRecord

comp.databases.ms-access comp.databases.ms-access


Discuss Re: Using DoCmd.FindRecord in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rich P
 
Posts: n/a

Default Re: Using DoCmd.FindRecord - 03-10-2008 , 02:03 PM






Hi Ben,

I am guessing that [yCustomer Search Dialog] is your modal search form.
How are you populating the textbox on this form? I am guessing that [By
Search Type] is a textbox on the the form.

Try this: first - remember that a form is just a class, and as such you
can use Class properties Get/Set/Let within the form.

Add a Get Property to your main form

Public Property Get SearchCriteria() As String
SearchCriteria = "something"
End Property

then in the modal form you can read it liket this:

strSearch = Forms(MainFrom).SearchCriteria

You can also set Class properties in your search form and read the
values that you set in the search form public property Get in the same
way. Maybe that might improve performance for you.

HTH,
Rich

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.