Results 1 to 2 of 2
  1. #1
    DubCap01 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    Dubbo, Australia
    Posts
    104

    Dlookup help to change CmdBtn Caption

    Hi all,



    Am looking for an easy way to update a caption on a command button. I thought this might work:

    Me.CmdBtn01.Caption = DLookup("StockName","TblBarStock","NumericID = 1")

    but alas no. If I could get this to work, it would save me a great deal of extra work!

    thanks in anticipation
    Pete

  2. #2
    DubCap01 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    Dubbo, Australia
    Posts
    104
    Relax everyone, I just realised that it works fine, I was replacing the value with the same value from the table!! Once I changed the =1 to =57 it did the Dlookup perfectly!

    d'oh

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

Similar Threads

  1. Replies: 15
    Last Post: 11-03-2015, 12:48 AM
  2. Blink Caption
    By Naveen Marapaka in forum Forms
    Replies: 3
    Last Post: 09-18-2013, 10:33 PM
  3. Replies: 6
    Last Post: 01-16-2013, 12:12 PM
  4. Saving Change to Text Caption During Run-time
    By Janoose in forum Programming
    Replies: 5
    Last Post: 05-27-2011, 01:38 PM
  5. Replies: 0
    Last Post: 01-12-2011, 12:43 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