PC Review


Reply
Thread Tools Rate Thread

Controlling text fields in access 2002

 
 
Gasket
Guest
Posts: n/a
 
      1st Jun 2010
I'm having some problems making my data input form nicely usable. First of
all I'd like the text field to grow bigger when written on it, instead of
scrolling as it does now. Is it possible to make the active field grow on top
the others and then go back to it's defined size when another field is
activated? I have a lot of fields in my form and I can't enlarge them
anymore. And the fields might contain a lot of text or none at all.

Another thing is that when printed, the totally empty fields could be left
out completely. Now all I can do is minimize them and print the title and an
empty box with the height of one line. I would only like print the fields and
titles that actually contain information.

One more thing is organizing my reports. Now I have a counter giving each
report a number and organizing those based on that number. The problem is
that people make empty reports, or fill in a previous empty report somewhere
in between newer and older reports. This screws up my filing because the
latest reports might have an old index. I have an idea to make a manditory
"date"-field so that one couldn't exit the report without filling in the
date. Then I could organize the reports by date. I'm not good with VB, so how
can I make the exit-button to check if the date has been entered?

I'd be very grateful for any help you could provide.
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      1st Jun 2010
While the cursor is in a text box, hitting the key combination Shift-F2 will
cause a Zoom box to pop up.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"Gasket" <(E-Mail Removed)> wrote in message
news:06ECE39A-8B80-4989-AED9-(E-Mail Removed)...
> I'm having some problems making my data input form nicely usable. First of
> all I'd like the text field to grow bigger when written on it, instead of
> scrolling as it does now. Is it possible to make the active field grow on
> top
> the others and then go back to it's defined size when another field is
> activated? I have a lot of fields in my form and I can't enlarge them
> anymore. And the fields might contain a lot of text or none at all.
>
> Another thing is that when printed, the totally empty fields could be left
> out completely. Now all I can do is minimize them and print the title and
> an
> empty box with the height of one line. I would only like print the fields
> and
> titles that actually contain information.
>
> One more thing is organizing my reports. Now I have a counter giving each
> report a number and organizing those based on that number. The problem is
> that people make empty reports, or fill in a previous empty report
> somewhere
> in between newer and older reports. This screws up my filing because the
> latest reports might have an old index. I have an idea to make a manditory
> "date"-field so that one couldn't exit the report without filling in the
> date. Then I could organize the reports by date. I'm not good with VB, so
> how
> can I make the exit-button to check if the date has been entered?
>
> I'd be very grateful for any help you could provide.



 
Reply With Quote
 
Gasket
Guest
Posts: n/a
 
      1st Jun 2010
I think I might have solved the third problem, at least partially. I can make
the date needed by modifying the options of the data type from the structure
table. Only problem is that I can't change the option, because not all old
reports have dates. I guess I have to manually either delete the dateless
reports or add dates to them, before I can make the date compulsory and start
sorting the reports by date.

I still have no idea how to solve the first two problems, or will my sorting
idea even work.
 
Reply With Quote
 
Peter Hibbs
Guest
Posts: n/a
 
      2nd Jun 2010
You could easily just change the Height parameter of the Text box
control when it gets the focus and then change it back when it loses
the focus. Something like this :-


Dim vHeight As Long

Private Sub YourTextBox_GotFocus()
vHeight = Me.YourTextBox.Height
Me.YourTextBox.Height = 1500
End Sub

Private Sub YourTextBox_LostFocus()
Me.YourTextBox.Height = vHeight
End Sub


where YourTextBox is the name of your text box control. Change the
figure 1500 (Twips) to the value you need for your box when it has the
focus. If you know the height of the Text box control then you could
just use that figure in place of the vHeight variable which would not
then be needed.

Peter Hibbs.


On Tue, 1 Jun 2010 00:50:01 -0700, Gasket
<(E-Mail Removed)> wrote:

>I'm having some problems making my data input form nicely usable. First of
>all I'd like the text field to grow bigger when written on it, instead of
>scrolling as it does now. Is it possible to make the active field grow on top
>the others and then go back to it's defined size when another field is
>activated? I have a lot of fields in my form and I can't enlarge them
>anymore. And the fields might contain a lot of text or none at all.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2002 VB Module controlling Excel 2002 spreadsheet -Run-time =?Utf-8?B?TWJsYWNrbW9yZQ==?= Microsoft Excel Programming 0 12th May 2005 07:56 PM
Access 2002 field-level security: limit access to form fields =?Utf-8?B?U3RldmVJblRhbGx5Rmw=?= Microsoft Access Security 3 3rd Mar 2005 12:14 PM
Access 2002 left out numeric values in text fields in xls file Lee Microsoft Access External Data 2 24th Jun 2004 02:42 PM
Word 2002 - controlling text wrapping Camilla Microsoft Word New Users 3 20th Feb 2004 11:25 PM
Vba mapping from Access 2002 fields to outlook 2002 (contacts) ? Marc Microsoft Outlook VBA Programming 1 12th Feb 2004 03:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:04 AM.