Results 1 to 4 of 4
  1. #1
    Madmax2 is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    13

    Variabe small question

    Why do i get invalid qualifier in the below code...
    Code:
    private sub command29_click()
    
    on error goto errorcode2
    dim clock1 as long
    if isnull(clock#) then
    goto errorcode1
    else
    if isnull(part#) then
    goto errorcode1
    else
    clock1=clock#.value
    docmd.gotorecord , , acnewrec
    clock#.value=clock1
    endif
    endf
    exitsub
    errorcode1:
    msgbox"error1"
    errorcode2:
    msgbox"error2"
    endsub
    i get it at clock1=clock#.value

  2. #2
    Madmax2 is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    13
    Btw i had to retype bto my ipad because my work computer isnt connected to internet so posible mistakes in code point them all out just in case. Thanks. Max

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The only thing I can think of is that Clock# is not the name of a control on your form, in which case Access treats it as a numeric variable, which does not have the .value property. If Clock# is correct, try using Me![Clock#] to reference it, without using the .value part.

    John

  4. #4
    Madmax2 is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    13
    Yeah i goofed and found what happen. Clock# is the control source for combo35. I got it working after all. Thanks for the reply.

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

Similar Threads

  1. Relationship (small Question)
    By lebronjames in forum Access
    Replies: 3
    Last Post: 11-07-2012, 08:41 PM
  2. Help with a small query
    By Datech in forum Queries
    Replies: 4
    Last Post: 05-10-2012, 09:14 AM
  3. small help needed
    By arthasdk in forum Access
    Replies: 3
    Last Post: 01-07-2011, 12:08 AM
  4. Small Business Question
    By P5C768 in forum Access
    Replies: 1
    Last Post: 09-28-2009, 08:27 AM
  5. small if statement help please
    By taylorosso in forum Programming
    Replies: 16
    Last Post: 09-23-2009, 11:23 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