Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 11th, 2006, 02:15 PM
Registered User
 
Join Date: Feb 2006
Location: Hoenefoss, , Norway.
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 :)
Reply With Quote
  #2 (permalink)  
Old February 14th, 2006, 03:57 AM
Friend of Wrox
Points: 464, Level: 7
Points: 464, Level: 7 Points: 464, Level: 7 Points: 464, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2005
Location: Colombo, , Sri Lanka.
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.
Reply With Quote
  #3 (permalink)  
Old March 9th, 2006, 05:06 AM
Authorized User
 
Join Date: Mar 2006
Location: Bratislava, , Slovakia.
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

Reply With Quote
  #4 (permalink)  
Old March 9th, 2006, 07:22 AM
Friend of Wrox
 
Join Date: Dec 2005
Location: CHENNAI, TAMILNADU, India.
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
Reply With Quote
  #5 (permalink)  
Old March 9th, 2006, 07:38 AM
Authorized User
 
Join Date: Mar 2006
Location: Bratislava, , Slovakia.
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.