Sam,
<<Sorry, I am a bit of a dummy when it comes to this sort of stuff.>>
Not at all. I took a punt on your level of expertise; I should have been
more explicit.
Yes, I did mean to copy the code to NotePad, and save the file as
"frmUserMessage_2003.txt". Then launch your database, and open any code
module (or Press Alt +F11). If the Immediate Window (normally docked at
the
bottom of the screen) is not open, select [Immediate Window] from the
[View]
menu.
Enter the following into the Immediate Window:
LoadFromText acForm, "frmUserMessage", "path to
frmUserMessage_2003.txt"
(The newsreader will break the above into 2 lines. It should all be on
one
line.) Make sure to enter the correct path to frmUserMessage_2003.txt,
enclosed in double-quotes.
Then press [Enter]. This will create a new form called "frmUserMessage".
Open frmUserMessage, and the rest I think is fairly self-explanatory.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
(Currently in Japan)
---------------------------
Sorry Graham
You have totally lost me here. The text file that you are referring
to....
do you mean copy into the notepad and save as
frmUserMessage_2003.txt?????
I do not understand the next part....
Then open the Immediate
window in theAccess IDE, and enter the following command:
Can you expand on this???
Sorry, I am a bit of a dummy when it comes to this sort of stuff.
Regards
:
Sam,
Put the code into a standard module. Then, knowing the name of the
computer
you want to send the message to, call it like so:
UsrMsg strMessage, strComputerName
If you don't know the name of the computer, you can use the following
form,
which does the same thing (in Access 2002/2003).
DO NOT JUST PASTE THIS CODE INTO A MODULE OR FORM. Save the following
text
to a *.txt file called "frmUserMessage_2003.txt". Then open the
Immediate
window in theAccess IDE, and enter the following command:
LoadFromText acForm, "frmUserMessage",
"c:\Temp\frmUserMessage_2003.txt"
Naturally, change the path to the file as appropriate.
Version =20
VersionRequired =20
Checksum =-1320280745
Begin Form
PopUp = NotDefault
Modal = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
ViewsAllowed =1
TabularFamily =0
BorderStyle =3
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridY =10
Width =7426
DatasheetFontHeight =10
ItemSuffix =9
Left =3915
Top =2490
Right =11340
Bottom =5595
DatasheetGridlinesColor =12632256
RecSrcDt = Begin
0xb790d0050cc6e240
End
GUID = Begin
0x3a3e08aee6a5324dae74b1b356d1f5e8
End
NameMap = Begin
0x0acc0e5500000000000000000000000000000000000000000c00000002000000 ,
0x0000000000000000000000000000
End
Caption ="User Message"
DatasheetFontName ="Arial"
PrtMip = Begin
0xab050000a5050000a5050000a505000000000000201c0000e010000001000000 ,
0x010000006801000000000000a10700000100000001000000
End
PrtDevMode = Begin
0x5c5c53414e41545030325c50415f303231330000000000000000000000000000 ,
0x010400109c00980303f700040100090000000000000001000700580201000100 ,
0x5802020000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x00000000010000000300000000000000000000000000000000000000e2a497bc ,
0x00010102ff020200010000000000004c65786d61726b20573832300000000000 ,
0x00000000000000000000000000000050415f3032313300000000000000000000 ,
0x000000000000000000000000000000002b0200004c65786d61726b2057383230 ,
0x002052000000070031000000086e9102006e910220008001ff7fff7f00002d00 ,
0x01000b0011000600050003000700030003000200000000000000000000000f00 ,
0x030007000000e9010300bfe60300e7620100010016000e0012001f0011000000 ,
0x41003e01e2a497bc02000100ff00400058022c01000000000000580200000000 ,
0x00010000000000030000f7030000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000010000070000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000a0000000a0000000a0000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000100000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000010000000000 ,
0x0000000000000110000000000000000004000000010000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x0000000000000000ef73000000000000e2a497bc
End
PrtDevNames = Begin
0x08001500280001004c65786d61726b2057383230005c5c53414e41545030325c ,
0x50415f303231330031302e3134302e33302e31393a50524e00
End
OnLoad ="[Event Procedure]"
Begin
Begin Label
BackStyle =0
FontName ="Tahoma"
End
Begin CommandButton
Width =1701
Height =283
FontSize =8
FontWeight =400
ForeColor =-2147483630
FontName ="Tahoma"
End
Begin TextBox
FELineBreak = NotDefault
SpecialEffect =2
OldBorderStyle =0
Width =1701
LabelX =-1701
FontName ="Tahoma"
AsianLineBreak =255
End
Begin ListBox
SpecialEffect =2
Width =1701
Height =1417
LabelX =-1701
FontName ="Tahoma"
End
Begin ComboBox
SpecialEffect =2
Width =1701
LabelX =-1701
FontName ="Tahoma"
End
Begin Section
Height =3127
BackColor =-2147483633
Name ="Detail"
GUID = Begin
0x467e517cc211fb4f80d0346c64fdb141
End
Begin
Begin ListBox
RowSourceTypeInt =1
OverlapFlags =87
IMESentenceMode =3
ColumnCount =4
Left =226
Top =794
Width =5451
Height =1477
Name ="lstUsers"
RowSourceType ="Value List"