|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
If a table is empty, how do I say so?
Ok, I have a table in MS Access that's used for users to post announcements on. There's only one problem- if it's empty (meaning there are no announcements), the page returns an error stating that either BOF or EOF is true. Basically, it doesn't like the null status of the table. Is there a way to state something like 'There is nothing currently here.'? I've been playing with this code but it hasn't worked yet:
If an.EOF=an.BOF Then Response.Write("There are currently no system announcements.") Else do while not an.eof 'This starts a loop that lists them all End If |
|
#2
|
|||
|
|||
|
Code:
If an.bof and an.eof then 'empty else 'not empty end if |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > If a table is empty, how do I say so? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|