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

Help on something else....

21
Hello...
Was wondering what the best way to do this is.

I have a form which display's numerous records.... somewhere on that form i want some sort of query which will search and output either

"There is a entry with this company name in table 2 would you like to view this record in table 2?" otherwise

"There is no entry for this company in table 2 would you like to create this record in table 2?"

The Trigger would be the company name.... what's the best way to do this?
Jun 25 '08 #1
3 1108
NeoPa
32,556 Expert Mod 16PB
Is this a continuous form or is one record displayed at a time?
Jun 27 '08 #2
Marks
21
Is this a continuous form or is one record displayed at a time?
One Record displayed at a time... basically when viewing a record in the "customers table" there is a section which will try and find a business plan "business plan" table via the Customer Name....

if that makes sense.
Jun 27 '08 #3
NeoPa
32,556 Expert Mod 16PB
Assuming you would like to show the related record in a report, you could :
  1. Design a report to show the table. This will need some code which we'll cover later.
  2. Add a Command Button on your existing form.
  3. Add code behind the button to open the report, but filtered to the individual record selected.
  4. In the NoData event procedure of the report, add some code to inform the operator that, unfortunately, there is no matching record.
If a report is not really what you want, then a form can be used instead, but forms have no NoData event so the Recordset would need to be checked in the OnLoad event procedure instead. A little more fiddly but can certainly work.
Jun 30 '08 #4

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

Similar topics

2
by: Colin Davis | last post by:
Hi, I have written a script that basically sends an email (using sockets). I want this script to be able to run multiple copies of itself so that it doesn't have to wait for one mail sending to...
7
by: Rob | last post by:
I'm stuck in a program I'm making. I'm supposed to have a menu that asks the user to choose an option between 1 and 3. If the user chooses a valid option, i.e. types a number from 1 to 3, then...
8
by: drose0927 | last post by:
Please help! I can't get my program to exit if the user hits the Escape button: When I tried exit(EXIT_SUCCESS), it wouldn't compile and gave me this error: Parse Error, expecting `'}''...
4
by: Andrew | last post by:
I am a newbie to C# and would appreciate any help converting the following javascript function to C# function fxnParseIt() { // Note: sInputString code for demo purposes only, and should be // ...
5
by: SStory | last post by:
Hi all, I really needed to get the icons associated with each file that I want to show in a listview. I used the follow modified code sniplets found on the internet. I have left in...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
7
by: Gasten | last post by:
Hello. The last weeks I've been coding a roguelike (you know, like nethack) in python using the nCurses library. Some week ago I ran into a problem: When I made the object for messagebar-output, I...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
1
by: kvazar | last post by:
What I am trying to create is basically a page with a bunch of multiple choice questions. Basically just like a test page. I am providing the code lower. All the questions that need to show as a part...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
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.