+ Reply to Thread
Results 1 to 4 of 4

Thread: Fill part of record with asterisk

  1. #1
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Bucharest, Romania
    MS-Off Ver
    MS Office 2007
    Posts
    157

    Fill part of record with asterisk

    Hey guys. I'm learning access now and need your help for the folowing

    I have created a report using the wizard and added several fields from a table. I need make the report display one of those fields as the folowing

    example1 would display as ex************
    aster1 as as************

    Basically, I need it to disaplay the first character as it is and fill the rest of the record by exactly 12 asterisks.
    I'm sorry If i didn't explained correctly, I just starting with access.
    Thanks guys
    Last edited by Alexander Ceed; 12-15-2010 at 04:57 PM.

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,155

    Re: Fill part of record with asterisk

    If I understand correctly, you want a particular field to display the first two characters of the field and then 12 asterisks.

    I would suggest that you make sure that the record source for the report be a query, for the particular report field you will need to create an expression in your query.

    The field would look like this: NewFieldName: Left([OldFieldName],2)&"************"

    Use the new field name in your report instead of the old field name.

    HTH
    Alan

  3. #3
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Bucharest, Romania
    MS-Off Ver
    MS Office 2007
    Posts
    157

    Re: Fill part of record with asterisk

    Thanks Alan. Works like a charm.

  4. #4
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,155

    Re: Fill part of record with asterisk

    You are welcome.
    Alan

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0