473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unbound in MS Access

Hi I have MS access form which has some text on it in four paragrpahs.
Text in first two prargraphs can be changed if I want to and last two
paragraphs are not modifiable. When I go to Design View, I see that
first two paragraphs shows me as Unbound and text is not displayed. Can
anybody guide me how can I change the text from Unbound section as I
want to change some text so that when I access Form it should show me
with updated text.

Thanks,

Nov 29 '06 #1
7 2960
Text can be either in labels or in textboxes. If you do not want to be able
to edit the text, just display it, use a label. Since you want to modify
the text while in Form View for the first two paragraphs, you have used a
text box. But, the text for that text box does not exist until it is put
there by one of several means:

1. Default text. This is entered from the Default Value property of the
textbox when the Form is loaded. It is available from the Properties of the
textbox, on the Data tab. My guess is that you probably want to modify
this, so that the Form loads with text of your choosing in the textbox, but
the user can then change it.

2. Binding the textbox to a field of a table. This would also imply that
the Form is bound to that table. You could then enter text in the filed,
change it, save it, etc. This may be what you want, since this is what a
database is all about.

3. Setting the text by VBA code.

4. Other methods.
--
Darryl Kerkeslager

<mu************@gmail.comwrote
Hi I have MS access form which has some text on it in four paragrpahs.
Text in first two prargraphs can be changed if I want to and last two
paragraphs are not modifiable. When I go to Design View, I see that
first two paragraphs shows me as Unbound and text is not displayed. Can
anybody guide me how can I change the text from Unbound section as I
want to change some text so that when I access Form it should show me
with updated text.

Nov 29 '06 #2
It sounds like your paragraphs are contained in separate textboxes. If
this is the case then go to form design view, select one of the
textboxes you want to edit - right click on it and go to the bottom of
the dialog and select properties. This brings up the properties sheet
for that textbox. Select the "All" tab at the top of the property sheet
for that textbox. Look down about 5 or 6 lines and on the left side of
the dialog - one of the properties will say "Default Value". This is
most likely where the text is contained for that textbox. You can
stretch/drag the properties sheet to widen it to read the text or you
can highlight the text and copy it (ctrl+C) and paste it in NotePad to
read the text and edit it. Then copy it from notepad back to the
Default Value line and paste it back in the Default Vaue line with your
edits.

If you don't see any text listed in the Default Value line of the
property sheet then the text is being added programatically either from
a rich text file or from code behind the form. First check the property
sheet for the textbox. If that wasn't it then post back for a further
explanation about dealing with this text programmatically.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 29 '06 #3
Thanks Darryl and Rich for your prompt response.

Hi Rich I checked in Default Value and there is no any text shows. As
you said that if the text is not showing than it would have added by
programatically. Can you please guide me how can I find the text if it
is programatically.

Mukesh

Rich P wrote:
It sounds like your paragraphs are contained in separate textboxes. If
this is the case then go to form design view, select one of the
textboxes you want to edit - right click on it and go to the bottom of
the dialog and select properties. This brings up the properties sheet
for that textbox. Select the "All" tab at the top of the property sheet
for that textbox. Look down about 5 or 6 lines and on the left side of
the dialog - one of the properties will say "Default Value". This is
most likely where the text is contained for that textbox. You can
stretch/drag the properties sheet to widen it to read the text or you
can highlight the text and copy it (ctrl+C) and paste it in NotePad to
read the text and edit it. Then copy it from notepad back to the
Default Value line and paste it back in the Default Vaue line with your
edits.

If you don't see any text listed in the Default Value line of the
property sheet then the text is being added programatically either from
a rich text file or from code behind the form. First check the property
sheet for the textbox. If that wasn't it then post back for a further
explanation about dealing with this text programmatically.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 30 '06 #4
Hi Mukesh,

First you want to check for code behind the form. To do this go to the
form design view. Then look at the menu bar at the top of the design
view - where you have File, Edit, View.... Now look at the toolbar just
below that menu bar. Go to the right end of that toolbar. If you move
your mouse over the icons - moving to the left from the right end, the
4th icon (or maybe the 5th icon) is a magic wand. When you hold your
mouse over that icon it will say "Build". Now move over 2 more icons.
The square shaped icon will say "Code" when you hold your mouse over it.
Click this icon. This is the "Code" icon. This will bring up the code
module for code behind that form. Here you should seem some code if
there is any programming code behind that form. Copy that code (ctrl-A
to select it and ctrl-C to copy it). Then post back to the news group
here and paste the code that you copied (ctrl-v). I (or someone) will
take a look at the code and advise you further.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 30 '06 #5
Thanks Rich for all your help.

I see following code;

Private Sub WORD_Click()
On Error GoTo Err_WORD_Click

Dim oApp As Object

Set oApp = CreateObject("Word.Application")
oApp.Visible = True

Exit_WORD_Click:
Exit Sub

Err_WORD_Click:
MsgBox Err.DESCRIPTION
Resume Exit_WORD_Click

End Sub

Thanks, Mukesh
Rich P wrote:
Hi Mukesh,

First you want to check for code behind the form. To do this go to the
form design view. Then look at the menu bar at the top of the design
view - where you have File, Edit, View.... Now look at the toolbar just
below that menu bar. Go to the right end of that toolbar. If you move
your mouse over the icons - moving to the left from the right end, the
4th icon (or maybe the 5th icon) is a magic wand. When you hold your
mouse over that icon it will say "Build". Now move over 2 more icons.
The square shaped icon will say "Code" when you hold your mouse over it.
Click this icon. This is the "Code" icon. This will bring up the code
module for code behind that form. Here you should seem some code if
there is any programming code behind that form. Copy that code (ctrl-A
to select it and ctrl-C to copy it). Then post back to the news group
here and paste the code that you copied (ctrl-v). I (or someone) will
take a look at the code and advise you further.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 30 '06 #6
There should be more code than this. You need to copy all of the code
from the form code module. If that was all the code there was in the
form's code module, then click on the Modules tab in the main database
window. There is probably a standalone code module with more coe.

The code you show here only create a Word Application object - probably
to open a Word doc or RTF as I had originally suggested. So this means
that the text from the uneditable textboxes is coming from an external
file. The trick is to see what external file this is and where it is
located. Once you identify the external file, you only need to edit the
external file and you won't need to touch the code. Note: the external
file may reside on your workstation or it may reside on a network if
more than one user has access to this Database. See if there is anymore
code.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 30 '06 #7
Hi Rich thank you very much for all your help. You are genius. I was
able to find the text in Code. I will change today as per my
requirement. Again you are awsome.

Mukesh
Rich P wrote:
There should be more code than this. You need to copy all of the code
from the form code module. If that was all the code there was in the
form's code module, then click on the Modules tab in the main database
window. There is probably a standalone code module with more coe.

The code you show here only create a Word Application object - probably
to open a Word doc or RTF as I had originally suggested. So this means
that the text from the uneditable textboxes is coming from an external
file. The trick is to see what external file this is and where it is
located. Once you identify the external file, you only need to edit the
external file and you won't need to touch the code. Note: the external
file may reside on your workstation or it may reside on a network if
more than one user has access to this Database. See if there is anymore
code.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Dec 1 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
11
by: deko | last post by:
I need to create different recordsets based on queries that use data from unbound fields in a form. I've discovered that I can't do this, and instead need to save the data in question (usually a...
3
by: Trevor Hughes | last post by:
I am trying to resolve a problem I'm experiencing in Access 2000. I have an unbound control which is set be code on the open event of a form. However when I try to subsequently run some code...
4
by: Pierre | last post by:
Hi all, To ease load on a network i close automatically form open with a timer reset by user actions. If the time is expired i go through the collections of form and table and close all those...
2
by: Zlatko Matić | last post by:
Hello. I have the following problem with MS Access/PostgreSQL combination: There is a form in Access that has an unbound text box, used for entering a commentary of a batch of records. There is a...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
10
by: Matthew Wells | last post by:
Hello. I've converted a bound Access 2000 form which displays data retrieved from an Access 2000 database to an unbound form. Now my hyperlinks don't work. I'm assuming it's because the form...
18
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having...
5
by: SBC News Groups | last post by:
Using VBA how do I assign columns from a table to controls on an unbound form? Mike
6
by: Volker Neurath | last post by:
Hi all, I have a Problem with combobox-property "NotInList" and an unbound Form. The situation: On my main form i have three comboboxes for data-exchange (here: Names of distributor,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.