luckydead21
New Member
- Joined
- Mar 21, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hello, can someone help me how to make this in MS access VBA code to read from .txt file the colors
Example: Let's say my file name is called "Colors.txt"
Inside of it i have this information:
"W" = RGB(255,255,255)
"B" = RGB(0,0,0)
and so one..
And inside my access file i have table where it reads item color so i type there for example "B"
and when execute the fetch it will read "B" color from .txt file and display the color
Can someone help me to build such function or code?
Thanks
EDIT:
For now i use in VBA with Case
If case = "B" then do something
case = "W/B" then do something and so one
Example: Let's say my file name is called "Colors.txt"
Inside of it i have this information:
"W" = RGB(255,255,255)
"B" = RGB(0,0,0)
and so one..
And inside my access file i have table where it reads item color so i type there for example "B"
and when execute the fetch it will read "B" color from .txt file and display the color
Can someone help me to build such function or code?
Thanks
EDIT:
For now i use in VBA with Case
If case = "B" then do something
case = "W/B" then do something and so one
Last edited by a moderator: