Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2006, 02:15 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default The last empty record in table should not show

How do I prevent the last record in the Access table, you know, the one which is still empty, prevent from showing up in queries. Is there a general rule?

Alie :)
 
Old February 14th, 2006, 03:57 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default


Hi Alie,
Include checking the value of a mandotary(Primary key) field not NULL in WHERE clause.
 
Old March 9th, 2006, 05:06 AM
Authorized User
 
Join Date: Mar 2006
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is no way to disallow showing last (empty) record when is the query updateable.

Peko

 
Old March 9th, 2006, 07:22 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to anukagni Send a message via Yahoo to anukagni
Default

Hi nalla ,

 Iam having this doubt soo long but iam n't able to understand the method u said. wat's ur point of explenation. ur demons in SQL language..! pls give me an clarification so that i can also understand

thank's Bye
pap Raguv
 
Old March 9th, 2006, 07:38 AM
Authorized User
 
Join Date: Mar 2006
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nalla means this (in my opinion):

You create Query and type in SQL View something like this:
SELECT <field_name(s)> FROM <tablename> WHERE <primary_field_name> Is Not NULL

But this have not effect about visibility of last (empty) record.

If I mistake and Nalla means something other, please, excuse me.

Peko






Similar Threads
Thread Thread Starter Forum Replies Last Post
WHy does it show 1 record per page instead of 10? gilgalbiblewheel Classic ASP Databases 2 April 27th, 2005 11:03 AM
show one record if there are duplication yylee Access 1 January 9th, 2005 05:57 AM
Empty record field, No image dstubblefield Dreamweaver (all versions) 6 September 3rd, 2004 01:05 AM
Empty table for dropdownlist. macupryk BOOK: ASP.NET Website Programming Problem-Design-Solution 2 August 16th, 2004 06:33 AM
show the record number yami56 Access 9 April 5th, 2004 08:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.