473,397 Members | 1,985 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,397 software developers and data experts.

You must enter a value in the 'table_name.control_name' field.

67 64KB
Hi,

I use continuous form which bound to table as my user interface. Table primary key is the combination of 3 attributs, for example, A, B and C column. During form input, when user click on new record and input new information but he didn't fill primary key yet but leave focus from that new record, then access will pop up message "You must enter a value in the '.....' field.

This message for user interface is very annoying, how can I solve this like not showing this message but highlight on control border to red instead.

Could anybody point me out how to solve this?

Best regards,
Sophanna
Jun 1 '14 #1
4 6446
NeoPa
32,556 Expert Mod 16PB
Call the .Undo() procedure of the bound form to discard changes. This is equivalent to hitting the <ESC> key.
Jun 1 '14 #2
sophannaly
67 64KB
Hi NeoPa,

Thanks for your reply. If I use .Undo(), does it means that when user leave focus from that record, then all its value will erase from form?

Best regards,
Sophanna
Jun 2 '14 #3
NeoPa
32,556 Expert Mod 16PB
It means that, before they even leave the record, all changes are lost from the record.

NB. It is the .Undo() of the form only. Control.Undo() only cancels updates to the specific control.
Jun 2 '14 #4
sophannaly
67 64KB
Hi NeoPa,

Now I came up with one solution by using form error event and catch this error. And I think it works fine.
Jun 4 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Richard | last post by:
I have written a static method that uses the Reflection API to scrape all of the names of the instance variables in a class and their corresponding values; and then returns a hashMap containing a...
4
by: Tom Esker | last post by:
I've got Javascript in a form that adds up all of the numbers in a column of form fields and displays a total. It works great if every field has an initial value of 0, but if any of them are null,...
4
by: Won Mee | last post by:
I want to enter a value in a field and for that value that was entered to be multiplyed by 10 and then stored in a table. How do I do this? For example: =*10; Thanks, Won Mee
1
by: K. Davis | last post by:
I need to increment the maximum value of a field of a table by 1 when a form opens a blank record. (e.g. =max(!![trip_number}) so the logic and references are working at the form level. I've...
4
by: erick-flores | last post by:
Hello I am trying to setup a default value for a field in a form. The field is a text box. I need to setup the default value to: 0.000. And whenever the user is trying to enter a value for this...
2
by: Sound | last post by:
Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Add a field without giving any name and save the...
8
by: Jeff | last post by:
A client wants a press of the Enter key in a field on a continuous form to grab the value of that field from the previous record. But if they have typed a value and then hit Enter it shouldn't. ...
1
by: sillyr | last post by:
Hi I wanted to make a statement in a form to take a value from one field if the first field has no value. I have a form created from two tables. Each table has a field called Haul number. On the...
2
by: resham | last post by:
i have a form in which i have two text fields and i want that the user enter value in one field at a time when i implement disable property then connectivity exception occurs can i implement lock in...
6
by: Mihail | last post by:
Hello ! I have a form, (in a FE database) bound to a table (in a BE). You understand that is, in fact, a linked table, because I am in FE. In this form I have some labels (for bounded controls)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
tracyyun
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...

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.