Results 1 to 4 of 4

Thread: copy field ? resolved

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    490

    Resolved copy field ? resolved

    kindly tell me whether this can be done by validation rule or by macro, if yes how.



    kindly help
    cheers
    Last edited by indiewolf; Jan 21st, 2007 at 05:21 PM.
    visual basic.net (2008)

    .net framework 3.5


  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: copy field in access macro or rules?

    I assume you are talking about access?

    Use the following SQL statement
    Code:
    UPDATE TABLE TableName SET b = right(a,16)
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    490

    Question Re: copy field in access macro or rules?

    Quote Originally Posted by DKenny
    I assume you are talking about access?

    Use the following SQL statement
    Code:
    UPDATE TABLE TableName SET b = right(a,16)

    yes you are right i am talking about access.

    i did put your code in my sql query,in the update to field in query design. but the problem is it copies 0 to all the records in column(field) b.

    why is that happening?
    kindly cheers
    visual basic.net (2008)

    .net framework 3.5


  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: copy field in access macro or rules?

    right(a,16)
    I might be wrong but i thing you also need to check if

    trim(right(a,16))<>""

    to make sure blank values are not copied?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

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



Click Here to Expand Forum to Full Width