473,549 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to send live message and notification to all the Access Database frontend users

2 New Member
I am new to Access VBA. We have an Access database which 20 staff are working together . i want a anyone to help me set up the popup message and notification to all the active users. The backend database is put on the company network drive. Much appriciated if anyone could give me VBA codes, thanks for your kindness in advance. I cannot access external websites from my office PC. I request some one to send me full VBA code so that I can copy and send it to my official email address and use it on our database .

Thanks in advance
Jun 22 '23 #1
3 20881
NeoPa
32,564 Recognized Expert Moderator MVP
Hi Rosh.

Welcome to Bytes.com :-)

Please understand that we are not comfortable with requests for free code to be done for you. See How to ask "good" questions -- READ BEFORE SUBMITTING A QUESTION! for what we are expecting to work with as volunteers offering our expertise here for free.

While this thread is always visible at the top of the forum we certainly don't get surprised when we find some new members have not read it, so don't get hung up on getting it wrong. We don't.

Simply figure out if what we offer can be of help to you (Sometimes it can't.) and, if it can, then post a thread which conforms to the requirements and we can take it from there.
Jun 22 '23 #2
isladogs
457 Recognized Expert Moderator Contributor
I agree with @NeoPa's comments.
In any case, any code that could be provided would need to be edited by you to alter it for your system

With that in mind, see the attached Almost Instant Messenger app which was posted some time ago at another forum.
Its not my code and its very much up to you to see whether it can be adapted for your purposes
Attached Files
File Type: zip AlmostInstantMessenger.zip (171.7 KB, 99 views)
Jun 27 '23 #3
iamroshm
2 New Member
Sorry for the late reply.

We don't have access to external files. Neither we can receive an external database that's why asked for vba codes. I have found the below code from the forum but it's not running throwing errors.

My table name is message
Textbox is message body
Command button is Btnsend
Listbox is Txtmessagelist


I have changed the details to match with mine
But it's throwing errors. I don't know how to trouble shoot
Please help.What is missing in this code.

Thanks in advance

The code is

Private Sub Form_Load()

Me.txtuserbase = strUserbase**' shows where is the working property
Me.txtCurrentUs er = strCurrentUserN ame 'shows the user name

End Sub

Private Sub Send_Click()
If Me.message = Null Then

MsgBox " Can't send blank message"

Else
' to save the message to a table called message_history
Set rs = New ADODB.Recordset
StrTemp = "Select * From message_history "
rs.Open StrTemp, CurrentProject. Connection, adOpenKeyset, adLockOptimisti c

rs.AddNew
rs("sender") = Me![txtCurrentUser]
rs("message") = Me![message]
rs("time") = Now
rs("receiver") = ""
rs.Update
rs.close
Set rs = Nothing

Me.message = Null
Me.message.SetF ocus
history.Requery
End If
End Sub

'timer to load and refresh data in the listbox
Private Sub Form_Timer()
history.Requery
Dim sList As String
Set myrs = New ADODB.Recordset
StrTemp = "Select * From message_history "
myrs.Open StrTemp, CurrentProject. Connection, adOpenKeyset, adLockOptimisti c

While Not myrs.EOF
sList = sList & myrs(0) & ";" & myrs(1) & ";"
myrs.MoveNext
Wend
history.RowSour ce = sList
myrs.close
Set myrs = Nothing
End Sub
Jul 12 '23 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
12643
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database which is in the "fpdb" folder of my webserver. Its located there so that I can use asp to build a web-based front-end for users to read the database...
4
1734
by: Michael | last post by:
Hi, Simple question: A customer has an application using Access 2000 frontend and SQL Server 2000 backend. Data connection is over ODBC. There are almost 250 concurrent users and is growing. Have they squeezed everything out of Access? Should the move to a VB.Net frontend taken place ages ago? Cheers Mike
6
11399
by: MAB71 | last post by:
There should be a way to copy an access database ( .mdb file ) without closing connections to it. Unfortunately the FileCopy statement in VB gives an error if users are connected to the db. But I can copy the file using windows explorer so there must be a way. WinAPI function or something? I'm using VB6 and Access 2000
9
3544
by: Shortstuff12345 | last post by:
I have a database that is tracking drawing markups from our manufacturing shop. The form I use captures the drawing number, the shop order, purpose of change, description of markup and who needs to make the change. I'd like to add a button so that I can send an email to the person responsible for the drawing and I want to include the drawing...
7
38643
by: evilash | last post by:
Hi, am new to c# so any help here would be greatly appreciated. Am trying to insert into my access database called Users.mdb located in my app data folder. My current code is as follows: OleDbConnection oleDbConnection = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source=" + Server.MapPath("~/app_data/users.mdb")); ...
10
3339
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Not sure if I quite follow that. 1. Data encrypted by AES key 2. AES key encrypted with Asymmetric public key (?)
1
2084
by: titli | last post by:
Hi All, Please tell me the best solution to implemenet security in access databases , to save the tables, queries, forms , reports as well as the VBA code from user access. The users of the application should only be able to work using the application frontend. I have read about various ways to implement security in access database at...
2
1665
by: John York | last post by:
I setup an online Access database and created a online data submission form using FrontPage 2003 to send data to the Access database. Works great for Windows users and some Mac computer users. However, some of the important Mac users can not get the FrontPage form to accept their input. The error messages are not helpful. Any ideas to tell these...
1
4903
by: Mutant | last post by:
Hi I wish to send sms using my access database through the website way2sms on which i have my account. Is there any way that i skip opening the site manually, logging in and sending message. how can i do it using vba so that whatever number i choose and message i want to send is directly sent and i get to know the result whether or not the...
0
7457
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7723
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7817
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6051
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5092
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
771
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.