Results 1 to 3 of 3
  1. #1
    abrian98 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    2

    Widecard characters in Data-macro


    I am trying to use wildcard characters in Data-Macro. I would appreciate it very much if someone help me with this. First of all, can Data-Macro handle wildcard characters? If so, if I want to find the followings in the column A and would like to enter a certain text (let's say 'true') in the column B, would this work?

    Column A Column B
    AB12bbc
    ABcv11f
    AB11111
    ABkerun

    If [Column A] = 'AB*' THEN
    SetField
    Name Column B
    Value = 'true'

    Any input would be very appreciated. HK

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Use the Like operator with wildcards. Try quote marks instead of apostrophe.

    If [Column A] Like "AB*" Then
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    abrian98 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    2
    Right on! Thanks for the tip.

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

Similar Threads

  1. Assist to create Data Macro
    By rkalapura in forum Programming
    Replies: 3
    Last Post: 07-30-2011, 11:12 AM
  2. Replies: 1
    Last Post: 11-19-2010, 09:08 AM
  3. Get External Data Macro
    By Harley Guy in forum Access
    Replies: 2
    Last Post: 11-16-2010, 12:20 AM
  4. Replies: 2
    Last Post: 08-24-2010, 03:32 PM
  5. Parsing for data in between two characters
    By rawdata in forum Access
    Replies: 7
    Last Post: 11-02-2009, 04:46 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