+ Reply to Thread
Results 1 to 3 of 3

Find the Record

  1. #1
    Forum Contributor
    Join Date
    04-09-2005
    Location
    Multan. Pakistan
    Posts
    129

    Question Find the Record

    Hi Dears,

    In FoxPro to find the record we use just like the following commands. (and if found the record then rest of the fields shown in Textboxes of the userForm)

    Locate for xyz=mxyz

    if .not. found()

    wait wind "Record does not exist"

    else

    Field1=textbox1
    Field2= Textbox2


    I need the codes for Excel vba, To find the record and if found then show the fields of the table in Textboxes of UserForm


    Thanks in advance

  2. #2
    fazo
    Guest

    Re: Find the Record


    Syed Haider Ali wrote:
    > Hi Dears,
    >
    > In FoxPro to find the record we use just like the following commands.
    > (and if found the record then rest of the fields shown in Textboxes of
    > the userForm)
    >
    > Locate for xyz=mxyz
    >
    > if .not. found()
    >
    > wait wind "Record does not exist"
    >
    > else
    >
    > Field1=textbox1
    > Field2= Textbox2
    >
    >
    > I need the codes for Excel vba, To find the record and if found then
    > show the fields of the table in Textboxes of UserForm
    >
    >
    > Thanks in advance
    >
    >
    > --
    > Syed Haider Ali
    > ------------------------------------------------------------------------
    > Syed Haider Ali's Profile: http://www.excelforum.com/member.php...o&userid=21994
    > View this thread: http://www.excelforum.com/showthread...hreadid=397584



  3. #3
    STEVE BELL
    Guest

    Re: Find the Record

    Here's some old code from Tom Olgivy

    Dim rng as Range
    set rng = Cell.find( Targetvalue)
    if not rng is nothing then
    ' found
    ' do something
    else
    ' not found
    End if


    see if this gets you going...

    --
    steveB

    Remove "AYN" from email to respond
    "Syed Haider Ali"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi Dears,
    >
    > In FoxPro to find the record we use just like the following commands.
    > (and if found the record then rest of the fields shown in Textboxes of
    > the userForm)
    >
    > Locate for xyz=mxyz
    >
    > if .not. found()
    >
    > wait wind "Record does not exist"
    >
    > else
    >
    > Field1=textbox1
    > Field2= Textbox2
    >
    >
    > I need the codes for Excel vba, To find the record and if found then
    > show the fields of the table in Textboxes of UserForm
    >
    >
    > Thanks in advance
    >
    >
    > --
    > Syed Haider Ali
    > ------------------------------------------------------------------------
    > Syed Haider Ali's Profile:
    > http://www.excelforum.com/member.php...o&userid=21994
    > View this thread: http://www.excelforum.com/showthread...hreadid=397584
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1