Hello,
Can anyone help with the following:
I wrote an ASP script with allows me to select an MS Access database
from a folder, and it shows the tables in this database. If I click a
table, the fields are displayed. And then I have a button to create a
HTML form to suit this table.
My problem is, fields that are essential. I would like to mark
appropriate form fields as 'essential' . Is there any way I can get the
attributes of a field, so I know if it will accept null values?
Any help or advice is greatly appreciated.
Gram. 4 1751
Gram wrote: Hello,
Can anyone help with the following:
I wrote an ASP script with allows me to select an MS Access database from a folder, and it shows the tables in this database. If I click a table, the fields are displayed. And then I have a button to create a HTML form to suit this table.
My problem is, fields that are essential. I would like to mark appropriate form fields as 'essential' . Is there any way I can get the attributes of a field, so I know if it will accept null values?
Any help or advice is greatly appreciated.
Gram. http://www.aspfaq.com/show.asp?id=2177 http://www.aspfaq.com/show.asp?id=2244
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Hi Bob,
Thanks for your help with this, however;
What im looking for is some way for the code to tell me if a field in a
database is essential to fill in, ie, that it won't accept a null value
Sorry if Im explaining this badly.
Gram
Bob Barrows [MVP] wrote: Gram wrote:
Hello,
Can anyone help with the following:
I wrote an ASP script with allows me to select an MS Access database from a folder, and it shows the tables in this database. If I click a table, the fields are displayed. And then I have a button to create a HTML form to suit this table.
My problem is, fields that are essential. I would like to mark appropriate form fields as 'essential' . Is there any way I can get the attributes of a field, so I know if it will accept null values?
Any help or advice is greatly appreciated.
Gram. http://www.aspfaq.com/show.asp?id=2177 http://www.aspfaq.com/show.asp?id=2244
Bob Barrows
I'm pretty sure one of the articles I cited explained about using ADOX to do
this. If not, go to msdn.microsoft.com/library and look up the ADOX
documentation which will explain how to get the custom (Access-defined)
column properties. Here's a direct link to the documentation: http://msdn.microsoft.com/library/en...ireference.asp
You will probably find the Programmer's Guide more helpful: http://msdn.microsoft.com/library/en...dloverview.asp
Bob Barrows
Gram wrote: Hi Bob,
Thanks for your help with this, however;
What im looking for is some way for the code to tell me if a field in a database is essential to fill in, ie, that it won't accept a null value
Sorry if Im explaining this badly.
Gram
Bob Barrows [MVP] wrote: Gram wrote:
Hello,
Can anyone help with the following:
I wrote an ASP script with allows me to select an MS Access database from a folder, and it shows the tables in this database. If I click a table, the fields are displayed. And then I have a button to create a HTML form to suit this table.
My problem is, fields that are essential. I would like to mark appropriate form fields as 'essential' . Is there any way I can get the attributes of a field, so I know if it will accept null values?
Any help or advice is greatly appreciated.
Gram. http://www.aspfaq.com/show.asp?id=2177 http://www.aspfaq.com/show.asp?id=2244
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Hi Bob,
Thanks for your help, I'll tear into em and see what I can do.
Thanks again.
Gram.
Bob Barrows [MVP] wrote: I'm pretty sure one of the articles I cited explained about using ADOX to do this. If not, go to msdn.microsoft.com/library and look up the ADOX documentation which will explain how to get the custom (Access-defined) column properties. Here's a direct link to the documentation: http://msdn.microsoft.com/library/en...ireference.asp
You will probably find the Programmer's Guide more helpful: http://msdn.microsoft.com/library/en...dloverview.asp
Bob Barrows Gram wrote:
Hi Bob,
Thanks for your help with this, however;
What im looking for is some way for the code to tell me if a field in a database is essential to fill in, ie, that it won't accept a null value
Sorry if Im explaining this badly.
Gram
Bob Barrows [MVP] wrote:
Gram wrote:
Hello,
Can anyone help with the following:
I wrote an ASP script with allows me to select an MS Access database from a folder, and it shows the tables in this database. If I click a table, the fields are displayed. And then I have a button to create a HTML form to suit this table.
My problem is, fields that are essential. I would like to mark appropriate form fields as 'essential' . Is there any way I can get the attributes of a field, so I know if it will accept null values?
Any help or advice is greatly appreciated.
Gram. http://www.aspfaq.com/show.asp?id=2177 http://www.aspfaq.com/show.asp?id=2244
Bob Barrows
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: |
last post by:
If I need to check if a certain value does exist in a field, and return
either "yes" or "not" which query would be the most effestive?
|
by: Vladimir |
last post by:
Hello,
I have a table in MS Access database. It has one field (with BYTE datatype)
that has several properties set in Lookup tab of table Design View.
Display Control = Combo Box. Row Source...
|
by: Pato Secruza |
last post by:
Hi everyone!
I have a really frustrating error and need help.
I’m trying to do a function that gets the properties and names
of the fields in a MS Access database using ASP. I haven’t...
|
by: Dixie |
last post by:
Can I set the Format property in a date/time field in code?
Can I set the Input Mask in a date/time field in code?
Can I set the Format of a Yes/No field to Checkbox in code?
I am working on...
|
by: Amber |
last post by:
The DataGrid allows you to make columns visible or invisible on demand
- even edit and other special columns. This article will show you how
it is done.
Some developers have reported problems...
|
by: Donald Grove |
last post by:
Is it possible to retrieve field properties from a table in access2000
using code?
I have tried:
"
dim dbs as dao.database
dim tbl as dao.tabledef
dim fld as dao.field
dim prop as...
|
by: The Frog |
last post by:
Hello everyone,
I am working on an application that can build database objects in MS
Access from text files. I suppose you could call it a backup and
restore type routine.
Accessing the...
|
by: leiger |
last post by:
Hi,
I need help with this problem as soon as possible (within a couple of days).
This is the first time I have ever used Access 2007 and therefore I am having some problems - especially as I...
|
by: edfromnz |
last post by:
I want to generate a table with one record for each field in the tables in my database. Columns would be table name, field name, field type, field description.
I can extract field properties as...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |