Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    So, if it is null, then it is not picking up the value that is being entered on the form. Your names haven't been switched around like I specified in post #8.

  2. #17
    zashaikh is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    182
    Click image for larger version. 

Name:	1.png 
Views:	15 
Size:	34.1 KB 
ID:	27309
    I have tried it both ways. But I am still getting the Null error

  3. #18
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    The last few show that it is picking up the country correctly. Are you getting the error on these or only on the null? Clear out the immediate window (select all and delete) so that none of the debug values are showing. Then enter the country and click on the button - what error are you getting now?

  4. #19
    zashaikh is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    182
    When I do this, I do not get an error. But nothing happens on my Form. My Form does not select any records that show Nigeria.

    However, when I go back to the Immediate Window, "Nigeria" is listed

  5. #20
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I copied what you have here and it works for me. I notice that you are on 2016, I wonder if that makes a difference?

    Also, in your filter statement you have Me! and in your debug you have Me. - I don't usually use the dot but I'm not sure if this makes any difference?

  6. #21
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Is your table design "clean"? What I mean by that is no formatting or lookups or naming manipulation or anything like that on the Country field of your table?

  7. #22
    zashaikh is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    182
    There is are no Lookups in the country field. And I dont beleive there is anything else.

    This is a link of a recording of me trying to do a search

    https://1drv.ms/v/s!Aqu9UKhK8oUTzg_limn3LzmuR6wn

  8. #23
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Yes, I see that it is all as it should be. I don't know how to help you further.

    I recommend that you start a new thread, asking why your filter isn't working, leaving it in this one might take a while for someone else to notice it!

  9. #24
    zashaikh is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    182
    I understand.

    That you so much for all of your help and effort. It means a lot.

    Best of Luck

  10. #25
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Try this - change the filter line to: Me.Filter="Country Like '*" & Me!Keyword & "*'"

    There may be some extraneous character somewhere, surrounding the Country with wildcard * will ignore those characters.

  11. #26
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Here is a link to help you get started with debugging: http://www.cpearson.com/excel/debug.htm

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-06-2012, 08:35 PM
  2. From subform to splitform
    By webisti in forum Access
    Replies: 1
    Last Post: 02-13-2012, 10:26 AM
  3. Replies: 4
    Last Post: 01-12-2012, 11:56 AM
  4. Question about Northwind Splitform Controls
    By ajetrumpet in forum Forms
    Replies: 2
    Last Post: 09-13-2010, 09:08 PM
  5. How to make use of Function Keys (F1, F2 etc)
    By rommelgenlight in forum Access
    Replies: 1
    Last Post: 05-15-2009, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums