Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Clint! is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    9
    Thanks again Orange, but how would I define my table name (NAFT-txt) in this Function?

  2. #17
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Tell us what you are trying to do in plain English. What is NAFT-txt?

    You call the function and pass your "number" as a parameter.

    eg: ASC_EBCD("-6552")


    SELECT yourOrigField
    , ASC_EBCD(yourOrigField) as RevisedNumber
    from yourTable


    Are you trying to create/run a query, or ???

    Here's a sample from some data I had.
    Query SQL showing use of ASC_EBCD

    Code:
    SELECT ClaimInfo.ClaimRef
    , ASC_EBCD([claimref]) AS Revised
    FROM ClaimInfo;
    Output from my data
    Code:
    ClaimRef Revised
    20120919000538 2012091900053H
    20120919000546 2012091900054F
    20120919000949 2012091900094I
    20120919000957 2012091900095G
    20120919000967 2012091900096G
    5723224 572322D
    5721436 572143F
    5720596 572059F
    5720540 572054{
    5722408 572240H

  3. #18
    Clint! is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    9
    Thanks orange, and I truly appreciate the time you put into this. I am a Novice with some training in VBA, but how would I define my field and table ([NAF-TXT].[AMT]) into this code?

  4. #19
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 03-02-2017, 12:52 PM
  2. Text field character limit
    By DB88 in forum Access
    Replies: 1
    Last Post: 05-14-2014, 03:27 PM
  3. Add character's to text box
    By Joopster in forum Forms
    Replies: 1
    Last Post: 03-20-2013, 06:45 PM
  4. Replies: 3
    Last Post: 12-22-2012, 05:33 PM
  5. replace a character with a wildcard
    By neeedhelp in forum Programming
    Replies: 2
    Last Post: 04-11-2011, 05:02 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