rgparpaccessworld
New member
- Local time
- Yesterday, 20:42
- Joined
- Sep 6, 2020
- Messages
- 1
I have Access 2016
I have a form name Patient Billing with several text and each text has several button
Below is one of them:
I have text box - HospHx – format property set on Rich Text
Command button 1:
Command Button 2:
When I click Command button 1 and 2, I get following which is jumble up in one sentence in Text box HospHx :
## RS = TOLERATING WITH NO DYSYNCHRONY Secretion - minimal ## CNS = Sedation - **Mentation - **Pupil - reactive
I can use “<div>” =
When I click button command 1 and 2 - I get following in Text box - HospHx
## RS =
TOLERATING WITH NO DYSYNCHRONY
Secretion - minimal
## CNS =
Sedation -
**Mentation -
**Pupil – reactive
Is there a different way of using VBA code to avoid manually adding “<div>” to all my button, as I have several button in the same 'form Patient Billing'
I have a form name Patient Billing with several text and each text has several button
Below is one of them:
I have text box - HospHx – format property set on Rich Text
Command button 1:
[HospHx] = [HospHx] & "## RS = " & vbCrLf & UCase("Tolerating with no dysynchrony") & vbCrLf & "Secretion – minimal” & vbCrLf & ""
Command Button 2:
[HospHx] = [HospHx] & vbCrLf & "" & "## CNS = " & vbCrLf & "Sedation - " & vbCrLf & "**Mentation - " & vbCrLf & "**Pupil - reactive" & vbCrLf & ""
When I click Command button 1 and 2, I get following which is jumble up in one sentence in Text box HospHx :
## RS = TOLERATING WITH NO DYSYNCHRONY Secretion - minimal ## CNS = Sedation - **Mentation - **Pupil - reactive
I can use “<div>” =
[HospHx] = [HospHx] & “,<div>” & "## RS = " & “<div>” & vbCrLf & “<div>” & UCase("Tolerating with no dysynchrony") & vbCrLf &“<div>” & "Secretion – minimal” & “<div>” & vbCrLf & ""
When I click button command 1 and 2 - I get following in Text box - HospHx
## RS =
TOLERATING WITH NO DYSYNCHRONY
Secretion - minimal
## CNS =
Sedation -
**Mentation -
**Pupil – reactive
Is there a different way of using VBA code to avoid manually adding “<div>” to all my button, as I have several button in the same 'form Patient Billing'