473,396 Members | 1,775 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.

Display message on Yes/No and blank fields validation

I have table with three fields namely [reportno], [complstatus-yes/no] and [paidbill].. I want that if [reportno] field is blank and I checked [compstatus]=Yes, than message to display "write reportno first before completion".. similarly if I checked [complstatus]=no and written bill no, than message to display "bill cannot be paid before completion".

Pl help me with the above.

Usman
Apr 3 '13 #1
4 1219
Rabbit
12,516 Expert Mod 8TB
Use the after update event of those controls to do your validation and messaging.
Apr 3 '13 #2
can it be possible in tables record validation rules.. actually i am new to access and don't know much about VB or macro and how to write the code.. it will be great help if given code or expression... thanks..usman
Apr 5 '13 #3
Similarly i have two fields ie [material](with drop down select list of cs or ss) and [type] (with drop drown list like 1, 2, 3, 4).. so that If I select ss from [material] field than i should select only 2 from [type], otherwise give message that "ss cannot be combined with type 1".. for cs it is ok with 1 or 3 or 4.. kindly help me for solution.. thanks
Apr 5 '13 #4
Rabbit
12,516 Expert Mod 8TB
Unfortunately you will have to use code. You can't use other columns in a validation rule.
Apr 5 '13 #5

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

Similar topics

4
by: Melissa | last post by:
I have a frontend file named CustomerApp and backend file named CustomerData. CustomerApp is at C:\Customer Database and CustomerData is at S:\Customer Database. Could someone help me with the code...
1
by: Phil | last post by:
We want to create fictional character names for a children's project, and have selected 30 first names, 30 last names, and want to include 26 (a-z) middle initials. Therefore there are 30x30x26 =...
4
by: Neil | last post by:
Hi, I have three fields on a form, one that's manually entered, and the other two drop down lists. A combination of these three is put down on a physical file for quick referencing. (I am...
1
by: Andy Davis | last post by:
I have a table of agent names and address details and I would like to automate the data entry process of these records on a form. If a user selects a particular agent say, upon selection of this...
3
by: VMI | last post by:
I'm currently using the dataAdapter.Fill method to fill my dataset with data from an Access DB. My dataset will contain a table with three fields from Access. In my datagrid (for user...
1
by: sudhi8212 | last post by:
i want the code for searching patern for three fields as for textbox. as when open the naukri.com first that provide a fecility to search the job acording as joblocation, keyword , field etc.
2
by: tenchyz | last post by:
I want to put fields from four tables into one table. I created a new table, but how do i get the same fields from the other tables to this table along with primary and foreign keys. ...
1
by: aaronkm | last post by:
Hello thescripts!, I hope this is easy for someone to answer, I just can't seem to figure it out. On my main form, within a Tab Control I have a ComboBox named: GapArea that is filtered by...
3
MattFitzgerald
by: MattFitzgerald | last post by:
My Forms & Tables:- Main form is Frm_LE_List (contains Customer Details) Stored in Tbl_LE_List Which contains subform Frm_VOL_References (Contains Orders known as VOL's) Stored in...
1
by: cardeal | last post by:
Hi! I have a long field on a mysql table and I would like to create a new table (from the old one) with the (new) content distributed into several fields. Example: oldField: 1. pace paz...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
0
agi2029
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,...

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.