I’m a newbie to Access and am working on a table to capture client contacts. I have 3 questions that I hope someone can help with.
First, I want the date to auto populate as soon as an entry is made on a form. I entered “Date()” in the default value for Date but it didn’t work. Is it possible I have it entered in the wrong spot?
Second, I have a comments section that I’d like to make it have unlimited characters. Right now it stops at about 32 characters. How can I change it?
Last, is there an easy way to perform a search on a form? In order to more easily find data and enter info, I wanted to add a search/find button on the form but I dont know how to set it up to actually search.
5 1653 ADezii 8,834
Recognized Expert Expert
I’m a newbie to Access and am working on a table to capture client contacts. I have 3 questions that I hope someone can help with.
First, I want the date to auto populate as soon as an entry is made on a form. I entered “Date()” in the default value for Date but it didn’t work. Is it possible I have it entered in the wrong spot?
Second, I have a comments section that I’d like to make it have unlimited characters. Right now it stops at about 32 characters. How can I change it?
Last, is there an easy way to perform a search on a form? In order to more easily find data and enter info, I wanted to add a search/find button on the form but I dont know how to set it up to actually search.
__1 I see no reason why =Date() should not work as long as it is listed in the Properties ==> Data ==> Default Value row for the Field. Make sure the underlying Control Source is defined as a Date/Time Data Type.
__2 In the underlying Table, for the [Comments] Field change the Data Type to Memo which will now allow you to enter 65,535 characters Maximum. Beware, a Memo Field does have its drawbacks. If you know for a fact that you [Comments] Field will never exceed 255 characters, you are better off setting its Data Type to Text with a Field size of 255.
__3 For generic Find Capability on a Form, you can place the following code in the Click() Event of a Command button. It is somewhat flexible in that you can specify several Parameters. One of my favorites is right clicking on a Field and using the Options on the PopUp Menu to search for a specific value in that Field. The only drawback is that the match must be exact. - Screen.PreviousControl.SetFocus
-
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
MMcCarthy 14,534
Recognized Expert Moderator MVP
__1 I see no reason why =Date() should not work as long as it is listed in the Properties ==> Data ==> Default Value row for the Field. Make sure the underlying Control Source is defined as a Date/Time Data Type.
Just one further comment on this. The default of any field will only work when adding a new record and won't work on existing records.
Mary
have you tried putting =date() instead of date()
ADezii 8,834
Recognized Expert Expert
__1 I see no reason why =Date() should not work as long as it is listed in the Properties ==> Data ==> Default Value row for the Field. Make sure the underlying Control Source is defined as a Date/Time Data Type.
__2 In the underlying Table, for the [Comments] Field change the Data Type to Memo which will now allow you to enter 65,535 characters Maximum. Beware, a Memo Field does have its drawbacks. If you know for a fact that you [Comments] Field will never exceed 255 characters, you are better off setting its Data Type to Text with a Field size of 255.
__3 For generic Find Capability on a Form, you can place the following code in the Click() Event of a Command button. It is somewhat flexible in that you can specify several Parameters. One of my favorites is right clicking on a Field and using the Options on the PopUp Menu to search for a specific value in that Field. The only drawback is that the match must be exact. - Screen.PreviousControl.SetFocus
-
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Thanks Mary. A lot of times I overlook the obvious and make assumptions when I shouldn't. Thanks for being there.
MMcCarthy 14,534
Recognized Expert Moderator MVP
Thanks Mary. A lot of times I overlook the obvious and make assumptions when I shouldn't. Thanks for being there.
No problem it was just something that struck me in the phrasing of the original question.
Mary
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Limey |
last post by:
Hi All,
I want to write an application that will talk to a RDBMS.
The application needs to be platform neutral from both an operating
system and database backend point of view.
I have decided to create a prototype in Python, the RDBMS will be
PostgreSQL running on a Linux box.
|
by: Megan |
last post by:
I am not that good at Access and don't know much about it, so I have a
few questions for anyone who knows Access very well. First off, I
should mention that the company I work for uses Access as a Rolodex
for names, addresses, and phone numbers of clients.
Okay, first question: When I open Access and click on Enter/View
Contacts, how do I get it to open to a blank entry not the first one
on the list?
Second question: What is a Contact...
|
by: Megan |
last post by:
Okay, I have a few questions regarding an Access database our company
has. I should first mention that I'm not that knowledgable in Access
and don't really know how to use it, but I am learning. We use Access
as a Rolodex with names and addresses of clients and vendors, so it's
made up of forms. First question: when I first open Access and the
Main Switchboard pops up and I click Enter/View Contacts it brings me
to the first entry in the...
|
by: SStory |
last post by:
have VS2002 installed on WIN XP pro machine that connects to the internet.
But my IIS is on a Win 2Kpro system networked via crossover. When I try to
transfer file using the VsCopy project it fails.
Also debugging won't work.
Must be an access right problem.
Any ideas?
Shane
|
by: Cy |
last post by:
Hi all,
I wanted to start a thread that might help many of us. I worked for a
company for 12 years, until this past Christmas when they let me go.
Getting rid of the higher dollar guys, in favor of more profit, was the
reasoning. Oh well.
Anyhow. I built this companies network from the ground up. Then about
8 years ago, I developed a MS Access 2.0 database. This database, much
like others, was supposed to just tiny bits. Over...
| |
by: Visitor No 3 |
last post by:
My local Crinkles group(U3A), of which I am one, want me to develop a noddy
database and web
site for their members. Some are computer literate, others not so. I thought
an Access 2000 .mdb on a server from the local council with a web page in
Active Server Pages(ASP) and using ADO would do the trick, then one of them
could update it at home on the web to keep track of members and somebody
else could do the same for current programmes etc....
|
by: ComputerTeacher |
last post by:
Hi,
I teach Access to high school sophmores and one topic our textbook does not cover is how to open a database without going through the steps of opening Access. Can I have an icon on my desktop that opens a particular form of an Access database so an inexperienced user does not have to go through the steps of opening Access first, then finding the file etc...?
|
by: markmcgookin |
last post by:
Hi Folks, Happy new year to all!
I have two questions here, which I hope will be relatively simple you you guys to answer!
1) Is it possible to stick a line or two of code in a form somewhere so that it is always maximised? I have created a form on a machine, but then when I run it in other machines with different resolutions the size goes iffy.
I found this
Global FormHeight
|
by: confused99 |
last post by:
Hi
This is my first thread here. I have a project in MS Access and i have 2 problems related to it.
1. In all the forms where i have the navigation buttons, the delete button is disabled. I am able to delete records by selecting one of the records and using the delete key on my keyboard. But the delete button on the navigation bar in the form is always disabled.
(In the form properties, i have enabled deletions)
2. Whenever i use the...
|
by: robertns5411 |
last post by:
I have two questions:
1) Say I have a form bound to a table. Assume the user is entering
data into a new record at the bottom of the form. Now, suppose the
user clicks a button on the form while he's still entering data and
hasn't yet saved the record that he is modifying. How can the
button's click event procedure test to know that the user is in the
middle of entering new data? I've tried testing against the form's
recordset's...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: 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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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...
| |