If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Results not correct

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-04, 11:27
NewfieBullet NewfieBullet is offline
Registered User
 
Join Date: Mar 2004
Posts: 51
Smile Results not correct

I have a db made and when i search with dreamweaver, if the record has no entry (like contact name results wont be displayed for all the fields.

Is there something that needs to be truned on or off or set

any suggestions

Newfiebullet
Reply With Quote
  #2 (permalink)  
Old 06-30-04, 12:18
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
I'm at a loss with this one.. if there is no record, how would the rest of the fields be populated with values that don't exist?
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 06-30-04, 13:18
NewfieBullet NewfieBullet is offline
Registered User
 
Join Date: Mar 2004
Posts: 51
Smile

let me be more spefic

I have two tables in access, one called GroupInfo and the Other called ServiceInfo. When i does the search if pulls data from both tables and if there is not data in one table sometimes it wont display the page eithe that or displays the wrong results from the group info table. it will take the number one id from groupinfo and the proper (result) one from the serviceinfo table.

Newfiebullet
Reply With Quote
  #4 (permalink)  
Old 06-30-04, 15:46
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Example on a page receiving a post of a SQL statement based on two listboxes that might each say All to show all with no criteria restrictions:

strSQL = "SELECT * MyTable WHERE (1=1)"
If MyFirstListBox <> "All" Then
strSQL = strSQL & " AND (MyType='" & Request.Form("MyFirstListBox") & "')"
End If
If MySecondListBox <> "All" Then
strSQL = strSQL & " AND (MyDetail='" & Request.Form("MySecondListBox") & "')"
End If
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On