Mike Leigh
Registered User.
- Local time
- Today, 10:38
- Joined
- Feb 5, 2001
- Messages
- 11
Hi,
I have a requirement to open a msgbox and display a text string when a record will be duplicated.
This is all done in VBA and it all works.
However I want to be able to reuse the code for other forms and the problem is this. I have a table called tbl_error_message in this there are 2 fields msgid and msgtext.
msgid = 100
msgtext = %1 is allready included for %2
or in english XYZ is allready included for company
%1 and %2 are 2 variables that I store in a text string and I need some code to first alter the helptext string by replacing %1 with whatever is in my variable for %1 and the same for %2.
at the moment my (msgbox !msgtext) code will display whatever is stored in the msgtext field for msgid 100.
Has anyone ever had to do this sort of thing before ?
Thanks in advance
I have a requirement to open a msgbox and display a text string when a record will be duplicated.
This is all done in VBA and it all works.
However I want to be able to reuse the code for other forms and the problem is this. I have a table called tbl_error_message in this there are 2 fields msgid and msgtext.
msgid = 100
msgtext = %1 is allready included for %2
or in english XYZ is allready included for company
%1 and %2 are 2 variables that I store in a text string and I need some code to first alter the helptext string by replacing %1 with whatever is in my variable for %1 and the same for %2.
at the moment my (msgbox !msgtext) code will display whatever is stored in the msgtext field for msgid 100.
Has anyone ever had to do this sort of thing before ?
Thanks in advance