Ask a Question related to Adobe Photoshop Elements, Design and Development.

  1. #1

    Default Warning message

    Hi Everyone,

    I'll explain what I'm doing first. At the moment, I am
    doing a record search via a form. I like to know if it's
    possible to display an error message if that record
    doesn't exist. Currently, it displays a blank form which
    isn't too informative for the user.

    If someone could help me with this, it would be greatly
    appreciated.

    Thanks in advance.


    Cheers,

    Johnny.
    Johnny Lui Guest

  2. Similar Questions and Discussions

    1. Warning Message Pop-Up - Acrobat PRO
      Before we upgrade to Acrobat PRO, we would like to know if the option exists in the set actions menu for a button, to query the user to confirm their...
    2. warning message (alert)
      Hi, I want to create the alert message ' You are about to over writte the acct, do you wish to continue?'). I need two buttons here, YES/ NO. If...
    3. Please, once & for all, Explain the Warning message!
      I'm sorry, but I'm having problems with the horrible message that means nothing to me. LOL Warning: No pixels are more than 50% selected. The...
    4. Help with Warning Message please
      I have to tell someone - Photoshop has to be the worst piece of Software in my computer as far as User Friendly goes... It's not going back in it's...
    5. cdrecord warning message
      I recently rebuilt my system. I didn't use to get this message: cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler cdrecord:...
  3. #2

    Default Re: Warning message

    If you are doing your record search via a recordset you should be able to
    use the nomatch property.

    For example:
    ....
    If rsClone.nomatch Then MsgBox "No records satisfy the specified search
    criteria", vbExclamation, "No Match"
    ....

    I hope this helps.

    Eric


    "Johnny Lui" <jlui@keromail.com> wrote in message
    news:055101c35182$63d94e90$a501280a@phx.gbl...
    | Hi Everyone,
    |
    | I'll explain what I'm doing first. At the moment, I am
    | doing a record search via a form. I like to know if it's
    | possible to display an error message if that record
    | doesn't exist. Currently, it displays a blank form which
    | isn't too informative for the user.
    |
    | If someone could help me with this, it would be greatly
    | appreciated.
    |
    | Thanks in advance.
    |
    |
    | Cheers,
    |
    | Johnny.


    Eric J. Williams Guest

  4. #3

    Default Re: Warning message

    Hi Eric,

    Thanks for your reply.

    Unfortunately, I'm using a query to do the search. Can you
    do via the query?

    Thanks again.


    Cheers,

    Johnny.
    >-----Original Message-----
    >If you are doing your record search via a recordset you
    should be able to
    >use the nomatch property.
    >
    >For example:
    >....
    >If rsClone.nomatch Then MsgBox "No records satisfy the
    specified search
    >criteria", vbExclamation, "No Match"
    >....
    >
    >I hope this helps.
    >
    >Eric
    >
    >
    >"Johnny Lui" <jlui@keromail.com> wrote in message
    >news:055101c35182$63d94e90$a501280a@phx.gbl...
    >| Hi Everyone,
    >|
    >| I'll explain what I'm doing first. At the moment, I am
    >| doing a record search via a form. I like to know if it's
    >| possible to display an error message if that record
    >| doesn't exist. Currently, it displays a blank form which
    >| isn't too informative for the user.
    >|
    >| If someone could help me with this, it would be greatly
    >| appreciated.
    >|
    >| Thanks in advance.
    >|
    >|
    >| Cheers,
    >|
    >| Johnny.
    >
    >
    >.
    >
    Johnny Lui Guest

  5. #4

    Default Re: Warning message

    Try using the DCount function:

    If DCount("*", "QueryName", "[FieldName]="somevalue") = 0 Then
    MsgBox "No matches found."
    Exit Sub
    End If

    If the query is the form's recordsource, you could use this:
    If DCount("*", Me.RecordSource, "[FieldName]="somevalue") = 0 Then
    MsgBox "No matches found."
    Exit Sub
    End If

    Note that the criterion expression might not be needed for the second
    example, depending upon how you were filtering your form.

    If you can provide more info about your form and the query, we can revise
    the code more specifically for you.
    --
    Ken Snell
    <MS ACCESS MVP>


    "Johnny Lui" <jlui@keromail.com> wrote in message
    news:055101c35182$63d94e90$a501280a@phx.gbl...
    > Hi Everyone,
    >
    > I'll explain what I'm doing first. At the moment, I am
    > doing a record search via a form. I like to know if it's
    > possible to display an error message if that record
    > doesn't exist. Currently, it displays a blank form which
    > isn't too informative for the user.
    >
    > If someone could help me with this, it would be greatly
    > appreciated.
    >
    > Thanks in advance.
    >
    >
    > Cheers,
    >
    > Johnny.

    Ken Snell Guest

  6. #5

    Default Re: Warning message

    Hi Ken,

    Thanks for your reply.

    Here's the query:

    SELECT tblProducts.[Catalog Number], tblProducts.[Catalog
    Description], tblProducts.[Company Name], tblProducts.P1,
    tblProducts.P2, tblProducts.Description
    FROM tblProducts
    WHERE (((tblProducts.[Catalog Number])=[Please enter the
    Catalog Number (do not include spaces or hyphens):]));

    Is there a way to put the Dcount function you mention in
    the query?

    Thanks again.


    Cheers,

    Johnny.

    >-----Original Message-----
    >Try using the DCount function:
    >
    > If DCount("*", "QueryName", "[FieldName]="somevalue")
    = 0 Then
    > MsgBox "No matches found."
    > Exit Sub
    > End If
    >
    >If the query is the form's recordsource, you could use
    this:
    > If DCount("*", Me.RecordSource, "[FieldName]
    ="somevalue") = 0 Then
    > MsgBox "No matches found."
    > Exit Sub
    > End If
    >
    >Note that the criterion expression might not be needed
    for the second
    >example, depending upon how you were filtering your form.
    >
    >If you can provide more info about your form and the
    query, we can revise
    >the code more specifically for you.
    >--
    > Ken Snell
    ><MS ACCESS MVP>
    >
    >
    >"Johnny Lui" <jlui@keromail.com> wrote in message
    >news:055101c35182$63d94e90$a501280a@phx.gbl...
    >> Hi Everyone,
    >>
    >> I'll explain what I'm doing first. At the moment, I am
    >> doing a record search via a form. I like to know if it's
    >> possible to display an error message if that record
    >> doesn't exist. Currently, it displays a blank form which
    >> isn't too informative for the user.
    >>
    >> If someone could help me with this, it would be greatly
    >> appreciated.
    >>
    >> Thanks in advance.
    >>
    >>
    >> Cheers,
    >>
    >> Johnny.
    >
    >
    >.
    >
    Johnny Lui Guest

  7. #6

    Default Re: Warning message

    Hi Ken,

    Thankyou so much for your reply again.

    Yes, the user is typing a value into a textbox on the
    form. It has a search button, so when they press it,
    another form pops up and displays the record. However, I
    want it to display a error message if the record doesn't
    exist.

    Thanks in advance.


    Cheers,

    Johnny.
    >-----Original Message-----
    >It doesn't go in the query. It goes in VBA code in your
    form that is
    >"calling" the query.
    >
    >Before I get into more details, please provide more
    details about how your
    >form is set up: your user is typing a value into a
    textbox on the form? what
    >is happening? Then we can best determine how you can use
    the DCount
    >function.
    >
    >--
    > Ken Snell
    ><MS ACCESS MVP>
    >
    >"Johnny Lui" <jlui@keromail.com> wrote in message
    >news:09c901c351b1$f671f2f0$a301280a@phx.gbl...
    >> Hi Ken,
    >>
    >> Thanks for your reply.
    >>
    >> Here's the query:
    >>
    >> SELECT tblProducts.[Catalog Number], tblProducts.
    [Catalog
    >> Description], tblProducts.[Company Name],
    tblProducts.P1,
    >> tblProducts.P2, tblProducts.Description
    >> FROM tblProducts
    >> WHERE (((tblProducts.[Catalog Number])=[Please enter the
    >> Catalog Number (do not include spaces or hyphens):]));
    >>
    >> Is there a way to put the Dcount function you mention in
    >> the query?
    >>
    >> Thanks again.
    >>
    >>
    >> Cheers,
    >>
    >> Johnny.
    >>
    >>
    >> >-----Original Message-----
    >> >Try using the DCount function:
    >> >
    >> > If DCount("*", "QueryName", "[FieldName]
    ="somevalue")
    >> = 0 Then
    >> > MsgBox "No matches found."
    >> > Exit Sub
    >> > End If
    >> >
    >> >If the query is the form's recordsource, you could use
    >> this:
    >> > If DCount("*", Me.RecordSource, "[FieldName]
    >> ="somevalue") = 0 Then
    >> > MsgBox "No matches found."
    >> > Exit Sub
    >> > End If
    >> >
    >> >Note that the criterion expression might not be needed
    >> for the second
    >> >example, depending upon how you were filtering your
    form.
    >> >
    >> >If you can provide more info about your form and the
    >> query, we can revise
    >> >the code more specifically for you.
    >> >--
    >> > Ken Snell
    >> ><MS ACCESS MVP>
    >> >
    >> >
    >> >"Johnny Lui" <jlui@keromail.com> wrote in message
    >> >news:055101c35182$63d94e90$a501280a@phx.gbl...
    >> >> Hi Everyone,
    >> >>
    >> >> I'll explain what I'm doing first. At the moment, I
    am
    >> >> doing a record search via a form. I like to know if
    it's
    >> >> possible to display an error message if that record
    >> >> doesn't exist. Currently, it displays a blank form
    which
    >> >> isn't too informative for the user.
    >> >>
    >> >> If someone could help me with this, it would be
    greatly
    >> >> appreciated.
    >> >>
    >> >> Thanks in advance.
    >> >>
    >> >>
    >> >> Cheers,
    >> >>
    >> >> Johnny.
    >> >
    >> >
    >> >.
    >> >
    >
    >
    >.
    >
    Johnny Lui Guest

  8. #7

    Default Re: Warning message

    This is the what the search button does the moment:

    Option Compare Database

    Private Sub Command2_Click()
    On Error GoTo Err_Command2_Click

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "frmProducts"

    DoCmd.OpenForm stDocName, , , stLinkCriteria

    Exit_Command2_Click:
    Exit Sub

    Err_Command2_Click:
    MsgBox Err.Description
    Resume Exit_Command2_Click

    End Sub
    >-----Original Message-----
    >Hi Ken,
    >
    >Thankyou so much for your reply again.
    >
    >Yes, the user is typing a value into a textbox on the
    >form. It has a search button, so when they press it,
    >another form pops up and displays the record. However, I
    >want it to display a error message if the record doesn't
    >exist.
    >
    >Thanks in advance.
    >
    >
    >Cheers,
    >
    >Johnny.
    >
    >>-----Original Message-----
    >>It doesn't go in the query. It goes in VBA code in your
    >form that is
    >>"calling" the query.
    >>
    >>Before I get into more details, please provide more
    >details about how your
    >>form is set up: your user is typing a value into a
    >textbox on the form? what
    >>is happening? Then we can best determine how you can use
    >the DCount
    >>function.
    >>
    >>--
    >> Ken Snell
    >><MS ACCESS MVP>
    >>
    >>"Johnny Lui" <jlui@keromail.com> wrote in message
    >>news:09c901c351b1$f671f2f0$a301280a@phx.gbl...
    >>> Hi Ken,
    >>>
    >>> Thanks for your reply.
    >>>
    >>> Here's the query:
    >>>
    >>> SELECT tblProducts.[Catalog Number], tblProducts.
    >[Catalog
    >>> Description], tblProducts.[Company Name],
    >tblProducts.P1,
    >>> tblProducts.P2, tblProducts.Description
    >>> FROM tblProducts
    >>> WHERE (((tblProducts.[Catalog Number])=[Please enter
    the
    >>> Catalog Number (do not include spaces or hyphens):]));
    >>>
    >>> Is there a way to put the Dcount function you mention
    in
    >>> the query?
    >>>
    >>> Thanks again.
    >>>
    >>>
    >>> Cheers,
    >>>
    >>> Johnny.
    >>>
    >>>
    >>> >-----Original Message-----
    >>> >Try using the DCount function:
    >>> >
    >>> > If DCount("*", "QueryName", "[FieldName]
    >="somevalue")
    >>> = 0 Then
    >>> > MsgBox "No matches found."
    >>> > Exit Sub
    >>> > End If
    >>> >
    >>> >If the query is the form's recordsource, you could use
    >>> this:
    >>> > If DCount("*", Me.RecordSource, "[FieldName]
    >>> ="somevalue") = 0 Then
    >>> > MsgBox "No matches found."
    >>> > Exit Sub
    >>> > End If
    >>> >
    >>> >Note that the criterion expression might not be needed
    >>> for the second
    >>> >example, depending upon how you were filtering your
    >form.
    >>> >
    >>> >If you can provide more info about your form and the
    >>> query, we can revise
    >>> >the code more specifically for you.
    >>> >--
    >>> > Ken Snell
    >>> ><MS ACCESS MVP>
    >>> >
    >>> >
    >>> >"Johnny Lui" <jlui@keromail.com> wrote in message
    >>> >news:055101c35182$63d94e90$a501280a@phx.gbl...
    >>> >> Hi Everyone,
    >>> >>
    >>> >> I'll explain what I'm doing first. At the moment, I
    >am
    >>> >> doing a record search via a form. I like to know if
    >it's
    >>> >> possible to display an error message if that record
    >>> >> doesn't exist. Currently, it displays a blank form
    >which
    >>> >> isn't too informative for the user.
    >>> >>
    >>> >> If someone could help me with this, it would be
    >greatly
    >>> >> appreciated.
    >>> >>
    >>> >> Thanks in advance.
    >>> >>
    >>> >>
    >>> >> Cheers,
    >>> >>
    >>> >> Johnny.
    >>> >
    >>> >
    >>> >.
    >>> >
    >>
    >>
    >>.
    >>
    >.
    >
    Johnny Lui Guest

  9. #8

    Default Re: Warning message

    Here's one way to do what you seek (I have not tested this exact code, so it
    may need a bit of tweaking):
    ---------------------------------------------------
    Private Sub Command2_Click()
    On Error GoTo Err_Command2_Click

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "frmProducts"

    DoCmd.OpenForm stDocName, , , stLinkCriteria, , acHidden
    If DCount("*", Forms(stDocName).Form.RecordSource) = 0 Then
    MsgBox "There are no records to display."
    DoCmd.Close acForm, Forms(stDocName).Form.Name
    Else
    Forms(stDocName).Form.Visible = True
    End If

    Exit_Command2_Click:
    Exit Sub

    Err_Command2_Click:
    MsgBox Err.Description
    Resume Exit_Command2_Click

    End Sub
    ------------------------------------------------------

    --
    Ken Snell
    <MS ACCESS MVP>

    "Johnny Lui" <jlui@keromail.com> wrote in message
    news:089a01c35270$54705a90$a101280a@phx.gbl...
    > This is the what the search button does the moment:
    >
    > Option Compare Database
    >
    > Private Sub Command2_Click()
    > On Error GoTo Err_Command2_Click
    >
    > Dim stDocName As String
    > Dim stLinkCriteria As String
    >
    > stDocName = "frmProducts"
    >
    > DoCmd.OpenForm stDocName, , , stLinkCriteria
    >
    > Exit_Command2_Click:
    > Exit Sub
    >
    > Err_Command2_Click:
    > MsgBox Err.Description
    > Resume Exit_Command2_Click
    >
    > End Sub
    > >-----Original Message-----
    > >Hi Ken,
    > >
    > >Thankyou so much for your reply again.
    > >
    > >Yes, the user is typing a value into a textbox on the
    > >form. It has a search button, so when they press it,
    > >another form pops up and displays the record. However, I
    > >want it to display a error message if the record doesn't
    > >exist.
    > >
    > >Thanks in advance.
    > >
    > >
    > >Cheers,
    > >
    > >Johnny.
    > >
    > >>-----Original Message-----
    > >>It doesn't go in the query. It goes in VBA code in your
    > >form that is
    > >>"calling" the query.
    > >>
    > >>Before I get into more details, please provide more
    > >details about how your
    > >>form is set up: your user is typing a value into a
    > >textbox on the form? what
    > >>is happening? Then we can best determine how you can use
    > >the DCount
    > >>function.
    > >>
    > >>--
    > >> Ken Snell
    > >><MS ACCESS MVP>
    > >>
    > >>"Johnny Lui" <jlui@keromail.com> wrote in message
    > >>news:09c901c351b1$f671f2f0$a301280a@phx.gbl...
    > >>> Hi Ken,
    > >>>
    > >>> Thanks for your reply.
    > >>>
    > >>> Here's the query:
    > >>>
    > >>> SELECT tblProducts.[Catalog Number], tblProducts.
    > >[Catalog
    > >>> Description], tblProducts.[Company Name],
    > >tblProducts.P1,
    > >>> tblProducts.P2, tblProducts.Description
    > >>> FROM tblProducts
    > >>> WHERE (((tblProducts.[Catalog Number])=[Please enter
    > the
    > >>> Catalog Number (do not include spaces or hyphens):]));
    > >>>
    > >>> Is there a way to put the Dcount function you mention
    > in
    > >>> the query?
    > >>>
    > >>> Thanks again.
    > >>>
    > >>>
    > >>> Cheers,
    > >>>
    > >>> Johnny.
    > >>>
    > >>>
    > >>> >-----Original Message-----
    > >>> >Try using the DCount function:
    > >>> >
    > >>> > If DCount("*", "QueryName", "[FieldName]
    > >="somevalue")
    > >>> = 0 Then
    > >>> > MsgBox "No matches found."
    > >>> > Exit Sub
    > >>> > End If
    > >>> >
    > >>> >If the query is the form's recordsource, you could use
    > >>> this:
    > >>> > If DCount("*", Me.RecordSource, "[FieldName]
    > >>> ="somevalue") = 0 Then
    > >>> > MsgBox "No matches found."
    > >>> > Exit Sub
    > >>> > End If
    > >>> >
    > >>> >Note that the criterion expression might not be needed
    > >>> for the second
    > >>> >example, depending upon how you were filtering your
    > >form.
    > >>> >
    > >>> >If you can provide more info about your form and the
    > >>> query, we can revise
    > >>> >the code more specifically for you.
    > >>> >--
    > >>> > Ken Snell
    > >>> ><MS ACCESS MVP>
    > >>> >
    > >>> >
    > >>> >"Johnny Lui" <jlui@keromail.com> wrote in message
    > >>> >news:055101c35182$63d94e90$a501280a@phx.gbl...
    > >>> >> Hi Everyone,
    > >>> >>
    > >>> >> I'll explain what I'm doing first. At the moment, I
    > >am
    > >>> >> doing a record search via a form. I like to know if
    > >it's
    > >>> >> possible to display an error message if that record
    > >>> >> doesn't exist. Currently, it displays a blank form
    > >which
    > >>> >> isn't too informative for the user.
    > >>> >>
    > >>> >> If someone could help me with this, it would be
    > >greatly
    > >>> >> appreciated.
    > >>> >>
    > >>> >> Thanks in advance.
    > >>> >>
    > >>> >>
    > >>> >> Cheers,
    > >>> >>
    > >>> >> Johnny.
    > >>> >
    > >>> >
    > >>> >.
    > >>> >
    > >>
    > >>
    > >>.
    > >>
    > >.
    > >

    Ken Snell Guest

  10. #9

    Default Re: Warning message

    Shucks.....my home base is about 1/2 way around the world from you! Guess
    you'll have to drink that coffee!

    --
    Ken Snell
    <MS ACCESS MVP>

    "Johnny Lui" <jlui@keromail.com> wrote in message
    news:2afd01c3549f$d41a4310$a001280a@phx.gbl...
    > Hi Ken,
    >
    > That code worked perfectly. Your help was greatly
    > appreicated.
    >
    > If you are in Australia, Sydney, NSW, Frenchs Forest 2086,
    > I'll buy you coffee.
    >
    > Thanks again.
    >
    >
    > Cheers,
    >
    > Johnny.
    > >-----Original Message-----
    > >Here's one way to do what you seek (I have not tested
    > this exact code, so it
    > >may need a bit of tweaking):
    > >---------------------------------------------------
    > >Private Sub Command2_Click()
    > >On Error GoTo Err_Command2_Click
    > >
    > > Dim stDocName As String
    > > Dim stLinkCriteria As String
    > >
    > > stDocName = "frmProducts"
    > >
    > > DoCmd.OpenForm stDocName, , , stLinkCriteria, ,
    > acHidden
    > > If DCount("*", Forms(stDocName).Form.RecordSource) =
    > 0 Then
    > > MsgBox "There are no records to display."
    > > DoCmd.Close acForm, Forms(stDocName).Form.Name
    > > Else
    > > Forms(stDocName).Form.Visible = True
    > > End If
    > >
    > >Exit_Command2_Click:
    > > Exit Sub
    > >
    > >Err_Command2_Click:
    > > MsgBox Err.Description
    > > Resume Exit_Command2_Click
    > >
    > >End Sub
    > >------------------------------------------------------
    > >
    > >--
    > > Ken Snell
    > ><MS ACCESS MVP>
    > >
    > >"Johnny Lui" <jlui@keromail.com> wrote in message
    > >news:089a01c35270$54705a90$a101280a@phx.gbl...
    > >> This is the what the search button does the moment:
    > >>
    > >> Option Compare Database
    > >>
    > >> Private Sub Command2_Click()
    > >> On Error GoTo Err_Command2_Click
    > >>
    > >> Dim stDocName As String
    > >> Dim stLinkCriteria As String
    > >>
    > >> stDocName = "frmProducts"
    > >>
    > >> DoCmd.OpenForm stDocName, , , stLinkCriteria
    > >>
    > >> Exit_Command2_Click:
    > >> Exit Sub
    > >>
    > >> Err_Command2_Click:
    > >> MsgBox Err.Description
    > >> Resume Exit_Command2_Click
    > >>
    > >> End Sub
    > >> >-----Original Message-----
    > >> >Hi Ken,
    > >> >
    > >> >Thankyou so much for your reply again.
    > >> >
    > >> >Yes, the user is typing a value into a textbox on the
    > >> >form. It has a search button, so when they press it,
    > >> >another form pops up and displays the record. However,
    > I
    > >> >want it to display a error message if the record
    > doesn't
    > >> >exist.
    > >> >
    > >> >Thanks in advance.
    > >> >
    > >> >
    > >> >Cheers,
    > >> >
    > >> >Johnny.
    > >> >
    > >> >>-----Original Message-----
    > >> >>It doesn't go in the query. It goes in VBA code in
    > your
    > >> >form that is
    > >> >>"calling" the query.
    > >> >>
    > >> >>Before I get into more details, please provide more
    > >> >details about how your
    > >> >>form is set up: your user is typing a value into a
    > >> >textbox on the form? what
    > >> >>is happening? Then we can best determine how you can
    > use
    > >> >the DCount
    > >> >>function.
    > >> >>
    > >> >>--
    > >> >> Ken Snell
    > >> >><MS ACCESS MVP>
    > >> >>
    > >> >>"Johnny Lui" <jlui@keromail.com> wrote in message
    > >> >>news:09c901c351b1$f671f2f0$a301280a@phx.gbl...
    > >> >>> Hi Ken,
    > >> >>>
    > >> >>> Thanks for your reply.
    > >> >>>
    > >> >>> Here's the query:
    > >> >>>
    > >> >>> SELECT tblProducts.[Catalog Number], tblProducts.
    > >> >[Catalog
    > >> >>> Description], tblProducts.[Company Name],
    > >> >tblProducts.P1,
    > >> >>> tblProducts.P2, tblProducts.Description
    > >> >>> FROM tblProducts
    > >> >>> WHERE (((tblProducts.[Catalog Number])=[Please enter
    > >> the
    > >> >>> Catalog Number (do not include spaces or
    > hyphens):]));
    > >> >>>
    > >> >>> Is there a way to put the Dcount function you
    > mention
    > >> in
    > >> >>> the query?
    > >> >>>
    > >> >>> Thanks again.
    > >> >>>
    > >> >>>
    > >> >>> Cheers,
    > >> >>>
    > >> >>> Johnny.
    > >> >>>
    > >> >>>
    > >> >>> >-----Original Message-----
    > >> >>> >Try using the DCount function:
    > >> >>> >
    > >> >>> > If DCount("*", "QueryName", "[FieldName]
    > >> >="somevalue")
    > >> >>> = 0 Then
    > >> >>> > MsgBox "No matches found."
    > >> >>> > Exit Sub
    > >> >>> > End If
    > >> >>> >
    > >> >>> >If the query is the form's recordsource, you could
    > use
    > >> >>> this:
    > >> >>> > If DCount("*", Me.RecordSource, "[FieldName]
    > >> >>> ="somevalue") = 0 Then
    > >> >>> > MsgBox "No matches found."
    > >> >>> > Exit Sub
    > >> >>> > End If
    > >> >>> >
    > >> >>> >Note that the criterion expression might not be
    > needed
    > >> >>> for the second
    > >> >>> >example, depending upon how you were filtering your
    > >> >form.
    > >> >>> >
    > >> >>> >If you can provide more info about your form and
    > the
    > >> >>> query, we can revise
    > >> >>> >the code more specifically for you.
    > >> >>> >--
    > >> >>> > Ken Snell
    > >> >>> ><MS ACCESS MVP>
    > >> >>> >
    > >> >>> >
    > >> >>> >"Johnny Lui" <jlui@keromail.com> wrote in message
    > >> >>> >news:055101c35182$63d94e90$a501280a@phx.gbl...
    > >> >>> >> Hi Everyone,
    > >> >>> >>
    > >> >>> >> I'll explain what I'm doing first. At the
    > moment, I
    > >> >am
    > >> >>> >> doing a record search via a form. I like to know
    > if
    > >> >it's
    > >> >>> >> possible to display an error message if that
    > record
    > >> >>> >> doesn't exist. Currently, it displays a blank
    > form
    > >> >which
    > >> >>> >> isn't too informative for the user.
    > >> >>> >>
    > >> >>> >> If someone could help me with this, it would be
    > >> >greatly
    > >> >>> >> appreciated.
    > >> >>> >>
    > >> >>> >> Thanks in advance.
    > >> >>> >>
    > >> >>> >>
    > >> >>> >> Cheers,
    > >> >>> >>
    > >> >>> >> Johnny.
    > >> >>> >
    > >> >>> >
    > >> >>> >.
    > >> >>> >
    > >> >>
    > >> >>
    > >> >>.
    > >> >>
    > >> >.
    > >> >
    > >
    > >
    > >.
    > >

    Ken Snell Guest

  11. #10

    Default Re: Warning Message

    Marvin,

    It's a conflict between your feather setting, and your selection area.

    Your feather setting is large enough (or selection small enough) so that your selection doesn't include any pixels that are more than 50% (density? presence? someone help with the correct term, please!).

    Either lower your feather setting, or increase the area you are selecting.

    HTH,

    Byron
    Byron Gale Guest

  12. #11

    Default Re: Warning Message

    Also make sure that you are on the correct layer in the layers
    pallette.

    dick

    Dick Smith Guest

  13. #12

    Default Re: Warning Message

    Thank you Bryon and Dick! I appreciate the response and it helped!
    Marvin Horlick Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139