|
-
Jan 19th, 2007, 12:24 PM
#1
Thread Starter
Hyperactive Member
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

-
Jan 19th, 2007, 12:54 PM
#2
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 
-
Jan 21st, 2007, 07:19 AM
#3
Thread Starter
Hyperactive Member
Re: copy field in access macro or rules?
 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

-
Jan 21st, 2007, 07:40 AM
#4
Re: copy field in access macro or rules?
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|