473,407 Members | 2,359 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,407 software developers and data experts.

Creating message box

Good morning,
I'm new in access and i have a question about creating message box, before that i explain mydata first.
I have table says TablePart which contain fields :
ID ( auto number) and Part (text) : PartA, PartB,PartC and PartD
from this table i create form named FrmTablePart
I have another table says TableData which contain fields :
Date , Partname ( combobox type, record source from Part in TablePart) and Quantity
from this table i create form named FrmTableData.
When users open FrmTableData and they write in Partname field "PartE". Because "PartE" is not in list of TablePart , i want message box display a warning message for example " This Part Not in List, do you want to input this one?" if they click Yes then it will open FrmTablePart (Record gotonew) and if they clikc No then cancel write this "PartE"
Is this possible to create it??
Thank You
Apr 25 '11 #1
2 1640
pod
298 100+
yes it is possible

This is just a wire frame of what could be done

Expand|Select|Wrap|Line Numbers
  1. Query_IsPartE-In-TablePart = "select * from TablePart WHERE Part = [Partname field]"
  2. execute Query_IsPartE-In-TablePart
  3. if your Query_IsPartE-In-TablePart does not returns results
  4.   wantToInsertText = "do you want to insert it into table?"
  5.   if msgbox(wantToInsertText,...) = vbYes
  6.     execute NonQuery_insert_PartE-In-TablePart
  7.   end if
  8. end if
  9.  
Apr 25 '11 #2
NeoPa
32,556 Expert Mod 16PB
I'm not about to do it all for you, but the answer is "Yes". It can be done.

There are even questions related to that here that may help to get you started with your design.

MS Access not in list event
Go to specific field in form using "on not in list " in access
Apr 25 '11 #3

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

Similar topics

6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
4
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
8
by: Nanda | last post by:
hi, I am trying to generate parameters for the updatecommand at runtime. this.oleDbDeleteCommand1.CommandText=cmdtext; this.oleDbDeleteCommand1.Connection =this.oleDbConnection1;...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
7
by: Ralf Gedrat | last post by:
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
0
by: aadsaca | last post by:
hi there, I just want to know if it is possible to create Message Queue on other Computer? if yes, how to do it? tnx,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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
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
isladogs
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...

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.