Ask a Question related to Dreamweaver AppDev, Design and Development.
-
I Need Help! #1
Help with Access fields when they are to remain blank
I have some sections of my database that will be left empty. I am trying to update my
database via my web admin pages without any success.
What should I be telling Access to do so that a field can be blank?
Data type is set to number. Required is set to No.
I am very much a beginner with databases.
Thank you!
I Need Help! Guest
-
Blank fields in database
Hi, I have a blank field in the database for Address. How do I refer to that? For ex: Set hrRS = Server.CreateObject("ADODB.Recordset") ... -
Rejecting blank fields in forms
Hi All, I hope that someone maybe able to help me with this question. At the moment I have the following line of code that checks if a field is... -
UNLOAD STATEMENT - Blank Fields Wanted
I thought I've seen this before, but I can't find my reference. What I need is to do the following statement: UNLOAD TO "./ord_reg.unl" SELECT... -
Datasheet Fields Blank
Hi , When using a datasheet view on Subform. Everytime I move to the next record, my fields on the previous record which have the Requery... -
Blank form fields passed to SQL
In your sql statement, check if the value is empty. I don't know what scripting language you are using so I will give an example using coldfusion ... -
Paul Whitham TMM #2
Re: Help with Access fields when they are to remain blank
The default on a numeric field is 0 rather than an empty value.
In what way are you having problems with the field
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
news:d51qjg$82v$1@forums.macromedia.com...to update my> I have some sections of my database that will be left empty. I am trying> database via my web admin pages without any success.
>
> What should I be telling Access to do so that a field can be blank?
>
> Data type is set to number. Required is set to No.
>
>
>
> I am very much a beginner with databases.
>
>
> Thank you!
>
>
>
>
>
Paul Whitham TMM Guest
-
I Need Help! #3
Re: Help with Access fields when they are to remain blank
I have a delete page - that works fine however my update details page does not.
1. I have many fields in my Access database that are empty. Data type is Number and in
General, Required is set to No
2. There is a date entry which appears in Access as 01/12/05 and on the website as
01/12/2005. locally it appears as 01/05/05
When I go to my update page, I have three fields which sometimes have numbers and
sometimes are blank depending on each entry. The list date appears as 1/12/2005, so the
date changes its' formatting.
I try to make changes and get an error 500 page. I cannot generate an error message and IE
is correctly set to accept error pages.
Should I be changing the formatting for the date in my recordset? Should I make changes to
Access so that blank fields are allowed?
I am still a beginner, especially when it comes to Access - but I AM getting there slowly!
I appreciate any help as I have been updating Access then uploading a very large database
to the server instead of doing it through the admin pages direct.
Thanks
"Paul Whitham TMM" <paul@valleybiz.net> wrote in message
news:d53tub$sbn$1@forums.macromedia.com...
The default on a numeric field is 0 rather than an empty value.
In what way are you having problems with the field
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
news:d51qjg$82v$1@forums.macromedia.com...to update my> I have some sections of my database that will be left empty. I am trying> database via my web admin pages without any success.
>
> What should I be telling Access to do so that a field can be blank?
>
> Data type is set to number. Required is set to No.
>
>
>
> I am very much a beginner with databases.
>
>
> Thank you!
>
>
>
>
>
I Need Help! Guest
-
Paul Whitham TMM #4
Re: Help with Access fields when they are to remain blank
Access needs to be set to allow blanks for fields where these are expected.
Anything that is holding a date should be set as a date field. The best way
to do updated on date fields is have the format set at YYYY-MM-DD just for
the update.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
news:d56g06$gn0$1@forums.macromedia.com...not.> I have a delete page - that works fine however my update details page doesNumber and in>
> 1. I have many fields in my Access database that are empty. Data type iswebsite as> General, Required is set to No
>
> 2. There is a date entry which appears in Access as 01/12/05 and on thenumbers and> 01/12/2005. locally it appears as 01/05/05
>
> When I go to my update page, I have three fields which sometimes have1/12/2005, so the> sometimes are blank depending on each entry. The list date appears aserror message and IE> date changes its' formatting.
>
> I try to make changes and get an error 500 page. I cannot generate anmake changes to> is correctly set to accept error pages.
>
> Should I be changing the formatting for the date in my recordset? Should Igetting there slowly!> Access so that blank fields are allowed?
>
> I am still a beginner, especially when it comes to Access - but I AMlarge database>
> I appreciate any help as I have been updating Access then uploading a very> to the server instead of doing it through the admin pages direct.
>
> Thanks
>
>
>
>
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:d53tub$sbn$1@forums.macromedia.com...
> The default on a numeric field is 0 rather than an empty value.
>
> In what way are you having problems with the field
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> [url]www.valleybiz.net[/url]
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> [url]www.macromedia.com/support/forums/team_macromedia[/url]
>
> "I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
> news:d51qjg$82v$1@forums.macromedia.com...> to update my> > I have some sections of my database that will be left empty. I am trying>> > database via my web admin pages without any success.
> >
> > What should I be telling Access to do so that a field can be blank?
> >
> > Data type is set to number. Required is set to No.
> >
> >
> >
> > I am very much a beginner with databases.
> >
> >
> > Thank you!
> >
> >
> >
> >
> >
>
>
Paul Whitham TMM Guest
-
I Need Help! #5
Re: Help with Access fields when they are to remain blank
I tested locally and got the error
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Cannot update 'ID'; field not updateable.
Lin 81: MM_editCmd.CommandText = MM_editQuery;
I do not have the ID field in my form and I am not changing it.
In Access it is my auto number. Indexed Yes with no duplicates.
"Paul Whitham TMM" <paul@valleybiz.net> wrote in message
news:d56hh0$iee$1@forums.macromedia.com...
Access needs to be set to allow blanks for fields where these are expected.
Anything that is holding a date should be set as a date field. The best way
to do updated on date fields is have the format set at YYYY-MM-DD just for
the update.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
news:d56g06$gn0$1@forums.macromedia.com...not.> I have a delete page - that works fine however my update details page doesNumber and in>
> 1. I have many fields in my Access database that are empty. Data type iswebsite as> General, Required is set to No
>
> 2. There is a date entry which appears in Access as 01/12/05 and on thenumbers and> 01/12/2005. locally it appears as 01/05/05
>
> When I go to my update page, I have three fields which sometimes have1/12/2005, so the> sometimes are blank depending on each entry. The list date appears aserror message and IE> date changes its' formatting.
>
> I try to make changes and get an error 500 page. I cannot generate anmake changes to> is correctly set to accept error pages.
>
> Should I be changing the formatting for the date in my recordset? Should Igetting there slowly!> Access so that blank fields are allowed?
>
> I am still a beginner, especially when it comes to Access - but I AMlarge database>
> I appreciate any help as I have been updating Access then uploading a very> to the server instead of doing it through the admin pages direct.
>
> Thanks
>
>
>
>
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:d53tub$sbn$1@forums.macromedia.com...
> The default on a numeric field is 0 rather than an empty value.
>
> In what way are you having problems with the field
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> [url]www.valleybiz.net[/url]
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> [url]www.macromedia.com/support/forums/team_macromedia[/url]
>
> "I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
> news:d51qjg$82v$1@forums.macromedia.com...> to update my> > I have some sections of my database that will be left empty. I am trying>> > database via my web admin pages without any success.
> >
> > What should I be telling Access to do so that a field can be blank?
> >
> > Data type is set to number. Required is set to No.
> >
> >
> >
> > I am very much a beginner with databases.
> >
> >
> > Thank you!
> >
> >
> >
> >
> >
>
>
I Need Help! Guest
-
I Need Help! #6
Re: Help with Access fields when they are to remain blank
Thanks.
I changed all datatypes to text instead of number and changed Allow Zero Length to Yes and
this works.
I also have a section for price which has a default of zero in Access so if a price is not
listed, it looks like this: $0.00. I had the datatype set to Number in Access and in UD it
was set to currency, 2 decimal places. My predicament is that sometimes the price is 'on
application' so having $0.00 is not acceptable. How can I overcome this?
I appreciate this help.
"Paul Whitham TMM" <paul@valleybiz.net> wrote in message
news:d56hh0$iee$1@forums.macromedia.com...
Access needs to be set to allow blanks for fields where these are expected.
Anything that is holding a date should be set as a date field. The best way
to do updated on date fields is have the format set at YYYY-MM-DD just for
the update.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
news:d56g06$gn0$1@forums.macromedia.com...not.> I have a delete page - that works fine however my update details page doesNumber and in>
> 1. I have many fields in my Access database that are empty. Data type iswebsite as> General, Required is set to No
>
> 2. There is a date entry which appears in Access as 01/12/05 and on thenumbers and> 01/12/2005. locally it appears as 01/05/05
>
> When I go to my update page, I have three fields which sometimes have1/12/2005, so the> sometimes are blank depending on each entry. The list date appears aserror message and IE> date changes its' formatting.
>
> I try to make changes and get an error 500 page. I cannot generate anmake changes to> is correctly set to accept error pages.
>
> Should I be changing the formatting for the date in my recordset? Should Igetting there slowly!> Access so that blank fields are allowed?
>
> I am still a beginner, especially when it comes to Access - but I AMlarge database>
> I appreciate any help as I have been updating Access then uploading a very> to the server instead of doing it through the admin pages direct.
>
> Thanks
>
>
>
>
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:d53tub$sbn$1@forums.macromedia.com...
> The default on a numeric field is 0 rather than an empty value.
>
> In what way are you having problems with the field
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> [url]www.valleybiz.net[/url]
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> [url]www.macromedia.com/support/forums/team_macromedia[/url]
>
> "I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
> news:d51qjg$82v$1@forums.macromedia.com...> to update my> > I have some sections of my database that will be left empty. I am trying>> > database via my web admin pages without any success.
> >
> > What should I be telling Access to do so that a field can be blank?
> >
> > Data type is set to number. Required is set to No.
> >
> >
> >
> > I am very much a beginner with databases.
> >
> >
> > Thank you!
> >
> >
> >
> >
> >
>
>
I Need Help! Guest
-
Paul Whitham TMM #7
Re: Help with Access fields when they are to remain blank
You need to adjust the update behaviour on the page as it has incorrectly
picked up the ID field. Just doubleclick on the update option in the SB
panel
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
news:d56no2$p7s$1@forums.macromedia.com...updateable.> I tested locally and got the error
>
> Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
>
> [Microsoft][ODBC Microsoft Access Driver] Cannot update 'ID'; field notexpected.>
> Lin 81: MM_editCmd.CommandText = MM_editQuery;
>
>
> I do not have the ID field in my form and I am not changing it.
>
> In Access it is my auto number. Indexed Yes with no duplicates.
>
>
>
>
>
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:d56hh0$iee$1@forums.macromedia.com...
> Access needs to be set to allow blanks for fields where these areway> Anything that is holding a date should be set as a date field. The bestdoes> to do updated on date fields is have the format set at YYYY-MM-DD just for
> the update.
>
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> [url]www.valleybiz.net[/url]
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> [url]www.macromedia.com/support/forums/team_macromedia[/url]
>
> "I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
> news:d56g06$gn0$1@forums.macromedia.com...> > I have a delete page - that works fine however my update details pageI> not.> Number and in> >
> > 1. I have many fields in my Access database that are empty. Data type is> website as> > General, Required is set to No
> >
> > 2. There is a date entry which appears in Access as 01/12/05 and on the> numbers and> > 01/12/2005. locally it appears as 01/05/05
> >
> > When I go to my update page, I have three fields which sometimes have> 1/12/2005, so the> > sometimes are blank depending on each entry. The list date appears as> error message and IE> > date changes its' formatting.
> >
> > I try to make changes and get an error 500 page. I cannot generate an> > is correctly set to accept error pages.
> >
> > Should I be changing the formatting for the date in my recordset? Shouldvery> make changes to> getting there slowly!> > Access so that blank fields are allowed?
> >
> > I am still a beginner, especially when it comes to Access - but I AM> >
> > I appreciate any help as I have been updating Access then uploading atrying> large database> > to the server instead of doing it through the admin pages direct.
> >
> > Thanks
> >
> >
> >
> >
> > "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> > news:d53tub$sbn$1@forums.macromedia.com...
> > The default on a numeric field is 0 rather than an empty value.
> >
> > In what way are you having problems with the field
> >
> > --
> > Regards
> >
> > Paul Whitham
> > Macromedia Certified Professional for Dreamweaver MX2004
> > Valleybiz Internet Design
> > [url]www.valleybiz.net[/url]
> >
> > Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> > [url]www.macromedia.com/support/forums/team_macromedia[/url]
> >
> > "I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
> > news:d51qjg$82v$1@forums.macromedia.com...> > > I have some sections of my database that will be left empty. I am>> > to update my> >> > > database via my web admin pages without any success.
> > >
> > > What should I be telling Access to do so that a field can be blank?
> > >
> > > Data type is set to number. Required is set to No.
> > >
> > >
> > >
> > > I am very much a beginner with databases.
> > >
> > >
> > > Thank you!
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
Paul Whitham TMM Guest
-
Paul Whitham TMM #8
Re: Help with Access fields when they are to remain blank
If the POA applies to all items having a 0 price then you could code an if
statement on the page like this
<%
ThisPrice = recordset.fields.item("price").value
IF ThisPrice = 0 then
response.write ("POA")
Else
response.write ThisPrice
End if
%>
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
news:d56pp6$re9$1@forums.macromedia.com...Length to Yes and> Thanks.
>
> I changed all datatypes to text instead of number and changed Allow Zeroif a price is not> this works.
>
> I also have a section for price which has a default of zero in Access soAccess and in UD it> listed, it looks like this: $0.00. I had the datatype set to Number inthe price is 'on> was set to currency, 2 decimal places. My predicament is that sometimesexpected.> application' so having $0.00 is not acceptable. How can I overcome this?
>
> I appreciate this help.
>
>
>
>
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:d56hh0$iee$1@forums.macromedia.com...
> Access needs to be set to allow blanks for fields where these areway> Anything that is holding a date should be set as a date field. The bestdoes> to do updated on date fields is have the format set at YYYY-MM-DD just for
> the update.
>
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> [url]www.valleybiz.net[/url]
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> [url]www.macromedia.com/support/forums/team_macromedia[/url]
>
> "I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
> news:d56g06$gn0$1@forums.macromedia.com...> > I have a delete page - that works fine however my update details pageI> not.> Number and in> >
> > 1. I have many fields in my Access database that are empty. Data type is> website as> > General, Required is set to No
> >
> > 2. There is a date entry which appears in Access as 01/12/05 and on the> numbers and> > 01/12/2005. locally it appears as 01/05/05
> >
> > When I go to my update page, I have three fields which sometimes have> 1/12/2005, so the> > sometimes are blank depending on each entry. The list date appears as> error message and IE> > date changes its' formatting.
> >
> > I try to make changes and get an error 500 page. I cannot generate an> > is correctly set to accept error pages.
> >
> > Should I be changing the formatting for the date in my recordset? Shouldvery> make changes to> getting there slowly!> > Access so that blank fields are allowed?
> >
> > I am still a beginner, especially when it comes to Access - but I AM> >
> > I appreciate any help as I have been updating Access then uploading atrying> large database> > to the server instead of doing it through the admin pages direct.
> >
> > Thanks
> >
> >
> >
> >
> > "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> > news:d53tub$sbn$1@forums.macromedia.com...
> > The default on a numeric field is 0 rather than an empty value.
> >
> > In what way are you having problems with the field
> >
> > --
> > Regards
> >
> > Paul Whitham
> > Macromedia Certified Professional for Dreamweaver MX2004
> > Valleybiz Internet Design
> > [url]www.valleybiz.net[/url]
> >
> > Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> > [url]www.macromedia.com/support/forums/team_macromedia[/url]
> >
> > "I Need Help!" <iamedia-nospam@hotmail.com> wrote in message
> > news:d51qjg$82v$1@forums.macromedia.com...> > > I have some sections of my database that will be left empty. I am>> > to update my> >> > > database via my web admin pages without any success.
> > >
> > > What should I be telling Access to do so that a field can be blank?
> > >
> > > Data type is set to number. Required is set to No.
> > >
> > >
> > >
> > > I am very much a beginner with databases.
> > >
> > >
> > > Thank you!
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
Paul Whitham TMM Guest



Reply With Quote

