Results 1 to 2 of 2
  1. #1
    earl is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    5

    access 2010 question


    I use the fOSUserName code on my old database , but I get error at ( String$ ) for this line > strUserName = String$(254, 0) for my 2010 access version .

  2. #2
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    first thing I would do is make sure that your references are not missing.

    open a module and select tools/references..
    if any references are missing either remove them from the list or find the correct ones.

    if that is not the problem..
    strUserName = Null or
    strUserName = ""

    NAME
    string$ - return a string of specified characters
    SYNOPSIS
    v$ = string$(NumExpr1, NumExpr2)
    v$ = string$(NumExpr, StrExpr)
    DESCRIPTION
    In the first case, string$ returns a string of NumExpr1 occurrences of the character whose ASCII code is NumExpr2. NumExpr1 may be any numeric expression with a non-negative value. NumExpr2 may be any numeric expressions whose values are in the range 0 to 255.


    DEC OCT HEX BIN Symbol HTML Number HTML Name Description
    0 000 00 00000000 NUL Null char

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

Similar Threads

  1. access 2010 question
    By earl in forum Access
    Replies: 3
    Last Post: 02-20-2013, 05:01 PM
  2. Replies: 6
    Last Post: 03-15-2012, 09:50 PM
  3. Replies: 1
    Last Post: 11-21-2011, 08:39 PM
  4. access 2010 vba question
    By jscriptor09 in forum Access
    Replies: 1
    Last Post: 08-26-2011, 06:57 AM
  5. ACCESS 2010 vba question
    By jscriptor09 in forum Access
    Replies: 1
    Last Post: 07-26-2011, 03:55 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