Hello
I'm sure I do something wrong, but I don't know what ...
In Form 1 I painted the RTF2 control and bound it to a memo field. Entering and changing data therein works fine.
Now, based on some space limitations, I want to reduce the control's size and add a zoom button nearby, which opens Form2 with an unbound RTF2 control.
What I want is simple.
- Having still the possibility to see, enter and update text in RFT2 on Form1
- Activating the Zoom button to transfer all current data from the bound RTF2 in Form 1 to the unbound RTF2 in Form2
- See, enter and change data in RTF2 in Form2
- Accept on Form2 transfers data back to RTF2 in Form1
- Only in Form1 the data are stored in DB.
What I did:
in Form 1, cmdZoomButton_C lick():
--snip--
DoCmd.OpenForm "Form2", , , , , acDialog, me!rtfField
--snip--
in Form2, Form_Open
--snip--
Me!rtfDummyFiel d = Me.OpenArgs
--snip--
Error: The setting you entered isn't valid for this property!
Currently I'm Lost.
Anyone an idea ?
Thx in advance
Wolfgang
P.S. WXP, Access 2003
4 2191
Your OpenArgs is in the wrong event procedure.
This is behind a command button on your input form
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "YourInputFormN ame"
DoCmd.OpenForm stDocName, , , , , , Me.YourTextCont rol
This is in the On Load event of the second form.
Private Sub Form_Load()
Me.YourTextCont rol = Me.OpenArgs
End Sub
Your OpenArgs is in the wrong event procedure.
...
Private Sub Form_Load()
Me.YourTextCont rol = Me.OpenArgs
End Sub
Sounds nice.
Unfortunatly it doesn't work.
Same error message as in the Form_Open event.
Wolfgang
What code do you have in the On Open event?
What code do you have in the On Open event?
-
Private Sub Form_Open(Cancel As Integer) ' zoom form
-
End Sub
-
-
Private Sub Form_Load() ' zoom form
-
' assign open arguments to fields
-
Me.rtfComment = Me.OpenArgs
-
End Sub
-
just moved the content from Form_Open to Form_Load. That's all.
And the zoom form is quite simple.
Just a big RTF2 control, unbound, in the Detail area and an accept button in the footer. That's it.
But I got the error in the open Arguments assignment.
Wolfgang
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Bruce Rusk |
last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what
may be a slight bug in it.
I have a lot of non-Western language (Chinese) text in my RTF field, and
such records get sized strangely using the .RTFHeight property of the
control. Specifically, lines of text get cut off the bottom of the control
when I use the code provided in the sample report on the lebans.com site. It
seems that when there is Chinese text,...
|
by: Marion Neubauer |
last post by:
Hi!
I'm using the RTF2 Control from Lebans web site with MS Access 2000.
It's working very good. Now i want to create a letter with the
formated text of the RTF2 control in MS Word 2000, but it shows all
the code inside and not the formating ... I'm not using vba-code, i'm
making the letter by hand (as a serial letter in Word with the
Access-DB as data source).
How can i create a letter which looks like the report in Word? Is it
possible...
|
by: Phil Stanton |
last post by:
I am trying to produce a program that will output any Access report to an
editable Word document. So far it is working well but slowly with text
boxes, labels, and lines.
I now need to try to output one of Stephen Lebans' RTF2 controls on the
report. He indicates that a copy and paste method will work from a form to
the Word doc and that is fine although I have not done this in VB, rather
used ^C and ^V
I suspect that a similar method...
|
by: dan.roffman |
last post by:
Is there a way to span a report over multiple pages. I think you could
do something like count the number of lines and if it exceeds a certain
number, then put the rest of th text into another RTF control. I just
don't know how to code that... Any help appreciated.
D
|
by: Sharper |
last post by:
I have just downloaded lebans rtf2 which initially looks very interesting.
Having a little trouble though in getting the RTF2 toolbar to appear on my
own db although it is on the sample. I have imported the modules correctly
(i think) and am able to create a RTF2 object from form design mode>active x
, but cant find the toolbar.
Secondly, is it possible to import text into an RTF2 memo field from say
word or excel using GET EXTERNAL...
| |
by: D Perron |
last post by:
I am using the RTF2 activeX control from Stephen Leban's website and
it works really well when there is one memo field. However, I cannot
get it to work with multiple memo fields (I have 4). I saw the code
for multiple memo fields and am trying to use it but not having any
luck. My RTF controls on the form just show "RTF2 Control Design View
Window". Any help would be appreciated.
|
by: Damon Reissman |
last post by:
Hello,
I'm trying to use Stephen Leban's RTF2 ActiveX control in an access
database with unicode data. In VB, I pass the text value directly from
the text box control in a form to the rtf2 control.
rttextbox.plaintext = forms!form1.textbox
When I step through the debugger, the value getting passed for unicode
characters are ?.
|
by: simon |
last post by:
I have an unbound RTF2 control in an Access 2003 form which I set to
show either unformatted text or else text with words and sentences
highlighted. I do this by setting the PlainText property, getting back
the rtfText and then adding the highlighting strings and resetting
rtfText as below:
sqry = "Select * from TextContent where FileID = " & ID
Set rs = CurrentDb().OpenRecordset(sqry, dbOpenSnapshot)
With rtfUnformatted
..rtfText = ""
|
by: Jako |
last post by:
Hi guys...
Well once again I'm in a dilemma. Currently I have a RTF2 object in
Access that is linked to a memo field in a table, the reason for this
is so that I can have bullets and numbers in the field. The problem is
however that the memo field has pritty much all the ActiveX coding in
it to make the RTF2 field appear the way we assigned it. Now the main
idea was to reference the content of the RTF2 field the way it appears
in the...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |