Ask a Question related to ASP Database, Design and Development.
-
Noozer #1
Added text field to database. New entries not equal to "" ???
Hi!
I'm accessing an MS Access database from an ASP server.
I just added a new text column (field) to one of my tables. I have not added
any data to this new field in any of the rows.
I read the field in and compare it to "" and it's coming up as false.
How do identify the empty fields?
'ASP code - Never produces "Blank"
if rsSet("region") = "" then response.write "Blank" else response.write
rsSet("region")
Noozer Guest
-
dynamic text field & "paging" content
I have a dynamic text field that gets populated from the backend with free form text (can be any text really). I want to be able to populate the... -
align "right" the text inside a text field?
hi: this is the code i've used: <STYLE type="text/css"> <!-- ..totalField { font-weight: bold; text-align: right; } -
Multi-field database "order by"
Is it possible to retrieve data with ASP sorted on 2 fields? I've tried : SELECT * FROM ORDER By Field1 AND Field 2 But it gives an error.... -
Compare 2 fields & delete everything in "field 2" that occurs in "field 1"
Is it possible to compare 2 fields and delete everything in "field 2" that also occurs in "field 1" ? FIELD1 800-555-1212 for... -
dr("field").toString returns "400.0000" instead of "400"
I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to... -
Alan Howard #2
Re: Added text field to database. New entries not equal to "" ???
Try
If IsNull (rsSet("region")) Then Response.Write "Null" Else Response.Write
rsSet("region")
Alan
"Noozer" <dont.spam@me.here> wrote in message
news:IVmAc.755870$Pk3.730376@pd7tw1no...added> Hi!
>
> I'm accessing an MS Access database from an ASP server.
>
> I just added a new text column (field) to one of my tables. I have not> any data to this new field in any of the rows.
>
> I read the field in and compare it to "" and it's coming up as false.
>
> How do identify the empty fields?
>
> 'ASP code - Never produces "Blank"
> if rsSet("region") = "" then response.write "Blank" else response.write
> rsSet("region")
>
>
Alan Howard Guest
-
Noozer #3
Re: Added text field to database. New entries not equal to "" ???
Thanks!
"Alan Howard" <Xalan.howardX@Xparadise.net.nzX> wrote in message
news:ONCUTnKVEHA.2928@tk2msftngp13.phx.gbl...> Try
>
> If IsNull (rsSet("region")) Then Response.Write "Null" Else Response.Write
> rsSet("region")
>
> Alan
>
> "Noozer" <dont.spam@me.here> wrote in message
> news:IVmAc.755870$Pk3.730376@pd7tw1no...> added> > Hi!
> >
> > I'm accessing an MS Access database from an ASP server.
> >
> > I just added a new text column (field) to one of my tables. I have not>> > any data to this new field in any of the rows.
> >
> > I read the field in and compare it to "" and it's coming up as false.
> >
> > How do identify the empty fields?
> >
> > 'ASP code - Never produces "Blank"
> > if rsSet("region") = "" then response.write "Blank" else response.write
> > rsSet("region")
> >
> >
>
Noozer Guest
-
Douglas J. Steele #4
Re: Added text field to database. New entries not equal to "" ???
And there are sometimes occasions when it could be a Null, or it could be a
blank. If you want to check for both at once, use:
If Len(rsSet("region") & "") = 0 Then Response.Write "Nothing" Else
Response.Write rsSet("region")
--
Doug Steele, Microsoft Access MVP
[url]http://I.Am/DougSteele[/url]
(no e-mails, please!)
"Noozer" <dont.spam@me.here> wrote in message
news:4MnAc.791748$oR5.380643@pd7tw3no...Response.Write> Thanks!
>
> "Alan Howard" <Xalan.howardX@Xparadise.net.nzX> wrote in message
> news:ONCUTnKVEHA.2928@tk2msftngp13.phx.gbl...> > Try
> >
> > If IsNull (rsSet("region")) Then Response.Write "Null" Elseresponse.write> > rsSet("region")
> >
> > Alan
> >
> > "Noozer" <dont.spam@me.here> wrote in message
> > news:IVmAc.755870$Pk3.730376@pd7tw1no...> > added> > > Hi!
> > >
> > > I'm accessing an MS Access database from an ASP server.
> > >
> > > I just added a new text column (field) to one of my tables. I have not> > > any data to this new field in any of the rows.
> > >
> > > I read the field in and compare it to "" and it's coming up as false.
> > >
> > > How do identify the empty fields?
> > >
> > > 'ASP code - Never produces "Blank"
> > > if rsSet("region") = "" then response.write "Blank" else>> >> > > rsSet("region")
> > >
> > >
> >
>
Douglas J. Steele Guest



Reply With Quote

