Results 1 to 4 of 4
  1. #1
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480

    Text Box Value in Msgbox ? Arg ?

    Alright, I am trying to do this...



    Code:
    Msgbox " Is This User in the List?" & Forms("frmmainnew").txtlast1234.Value
    This does not give me a syntax error.. but when the code is running nothing is popping up... The msgbox is not in an IF statement, So I really don't know what is going on... If I try this...


    Code:
    Msgbox " Is This User in the List?" & Forms("frmmainnew").txtlast1234.Value &
    Or
    Code:
    Msgbox " Is This User in the List? & Forms("frmmainnew").txtlast1234.Value & "
    I get syntax errors? Any ideas???

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Both of these give me the message dialog box:
    Code:
    MsgBox " Is This User in the List? " & Forms("activity").StreetNo
    
    'if on the same form
    MsgBox " Is This User in the List? " & Me.StreetNo
    Obviously, activity & StreetNo are my form and text box names
    BTW, ".Value" is not needed because the value property is the default property. Doesn't hurt but not necessary.

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    lol thank you... I need more caffeine... I had the textbox named wrong... WOW

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Great...

    Here you go .....

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Yes No msgbox
    By imintrouble in forum Access
    Replies: 3
    Last Post: 10-14-2011, 02:24 PM
  2. MsgBox after exporting
    By sk88 in forum Access
    Replies: 2
    Last Post: 08-26-2011, 06:50 AM
  3. MsgBox
    By Mtyetti in forum Forms
    Replies: 4
    Last Post: 07-27-2011, 01:51 PM
  4. MsgBox Placement
    By tpcervelo in forum Programming
    Replies: 2
    Last Post: 12-27-2010, 07:36 AM
  5. Yes No Cancel MsgBox
    By Rick West in forum Forms
    Replies: 5
    Last Post: 04-14-2010, 08:57 AM

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