473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using SQL to update control properties...possible?

Jac
Hi,

Is there an SQL command that allows control properties on fields to be
changed?

I'm specifically using RunSQL in a macro to try to do this.

Thanks
Jac

Nov 13 '05 #1
8 1722
No.

,,,and there shouldn't be either.

SQL is for the definition and manipulation of data only.

Try not to use macros as they offer no error handling support.

--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
"Jac" <am*********@yahoo.com.au> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi,

Is there an SQL command that allows control properties on fields to be
changed?

I'm specifically using RunSQL in a macro to try to do this.

Thanks
Jac

Nov 13 '05 #2
On Mon, 7 Nov 2005 15:41:53 -0000, "Craig Alexander Morrison"
<re***@newsgroups.com> wrote:
No.

,,,and there shouldn't be either.

SQL is for the definition and manipulation of data only.

Try not to use macros as they offer no error handling support.


I wouldn't go quite so far as "shouldn't". In some cases, a framework will
maintain metadata in tables, and allow the metadata tables to be safely
updated. Most SQL Server databases have a little or a lot of this going on.
Nov 13 '05 #3
Metadata is data.

--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:m6********************************@4ax.com...
On Mon, 7 Nov 2005 15:41:53 -0000, "Craig Alexander Morrison"
<re***@newsgroups.com> wrote:
No.

,,,and there shouldn't be either.

SQL is for the definition and manipulation of data only.

Try not to use macros as they offer no error handling support.


I wouldn't go quite so far as "shouldn't". In some cases, a framework
will
maintain metadata in tables, and allow the metadata tables to be safely
updated. Most SQL Server databases have a little or a lot of this going
on.

Nov 13 '05 #4
Form properties are data. If you are using ADP's,
where the form properties are stored in SQL Server,
you can execute stored procedures to change the
data. (Although AFAIK that is not supported or
documented)

Access/Jet MDB's do not have stored procedures that
you can execute to change the form data, even though
it is all stored in a record in a database.

(david)
"Craig Alexander Morrison" <re***@newsgroups.com> wrote in message
news:43******@212.67.96.135...
Metadata is data.

--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:m6********************************@4ax.com...
On Mon, 7 Nov 2005 15:41:53 -0000, "Craig Alexander Morrison"
<re***@newsgroups.com> wrote:
No.

,,,and there shouldn't be either.

SQL is for the definition and manipulation of data only.

Try not to use macros as they offer no error handling support.


I wouldn't go quite so far as "shouldn't". In some cases, a framework
will
maintain metadata in tables, and allow the metadata tables to be safely
updated. Most SQL Server databases have a little or a lot of this going
on.


Nov 13 '05 #5
"Craig Alexander Morrison" <re***@newsgroups.com> wrote in
news:43******@212.67.96.135:
Metadata is data.


Well, technically speaking, so are forms and form controls, since
they are stored in a record in a Jet data table.

I'm not disputing your point, simply pointing out that the
distinction you just made is not sufficient to justify your
argument.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #6
On Mon, 07 Nov 2005 20:30:20 -0600, "David W. Fenton"
<dX********@bway.net.invalid> wrote:
"Craig Alexander Morrison" <re***@newsgroups.com> wrote in
news:43******@212.67.96.135:
Metadata is data.


Well, technically speaking, so are forms and form controls, since
they are stored in a record in a Jet data table.

I'm not disputing your point, simply pointing out that the
distinction you just made is not sufficient to justify your
argument.


Right - metadata is data, and metadata is attributes - Q.E.D.
Nov 13 '05 #7
Steve Jorgensen wrote:
On Mon, 7 Nov 2005 15:41:53 -0000, "Craig Alexander Morrison"
<re***@newsgroups.com> wrote:
No.

,,,and there shouldn't be either.

SQL is for the definition and manipulation of data only.

Try not to use macros as they offer no error handling support.


I wouldn't go quite so far as "shouldn't". In some cases, a framework will
maintain metadata in tables, and allow the metadata tables to be safely
updated. Most SQL Server databases have a little or a lot of this going on.


I totally agree with the idea of doing things to system tables that MS
never intended provided the likely consequences are understood. Some
don't. Keeping in mind that "shouldn't" depends on who's saying it,
"shouldn't" can apply here in one sense given this quote from the SQL
Server 2000 System Table Map:

"This poster of system tables in Microsoft SQL Server 2000 is intended
as an informational resource for developers and administrators of SQL
Server. Microsoft does not support user modifications to system
tables, such as inserting, updating, or deleting data, as well as
changing the definition of system tables."

Here I interpret loosely MS' quote to mean "Here's how to do it, just
remember that we're not responsible for any consequences once you cross
this Rubicon we've drawn in the sand [snicker]." I wouldn't be
surprised if using API functions in VBA has its own set of disclaimers.
Hmmmm, I hadn't thought of changing the definition of system tables
until I read that quote :-).

James A. Fortune

Nov 13 '05 #8
When referring to metadata I was referring to its classic definition which
is a data dictionary.

In addition to metadata there is application metadata but I am not aware of
any application metadata that can be defined or manipulated by any variant
of SQL that is within nodding distance of the ISO definitions.

Certain proprietary implementations may obfuscate this definition, they may
even have a variant of SQL that can process application metadata.

Now that Microsoft have finally settled with IBM over the JDA breakdown I am
reminded that the SQL Server we have today is based on the crapulent SyBase
product was (finally) vastly improved for SQL Server 2000 but has since
moved backwards IMO. Had MS and IBM stayed friends the MS product would be
based on DB2 although the Microsoft DataBase that came out 13 years ago was
a very good stab at a small scale implementation of the Relational Model and
I am not sure if this would have happened without the falling out.

So we may have been blessed with Access and Jet and cursed with SQL Server.

--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:Xn**********************************@216.196. 97.142...
"Craig Alexander Morrison" <re***@newsgroups.com> wrote in
news:43******@212.67.96.135:
Metadata is data.


Well, technically speaking, so are forms and form controls, since
they are stored in a record in a Jet data table.

I'm not disputing your point, simply pointing out that the
distinction you just made is not sufficient to justify your
argument.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc



Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset...
13
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which...
9
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it...
0
by: Don | last post by:
I have a custom control with a custom designer. This designer allows me to open a dialog to define custom properties the way 'Property Builder' works for the datagrid. After I set the properties...
4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
0
by: Pavan | last post by:
My name is Pavan and I am a software engineer working on ASP .Net web development. Currently I am using .Net 2.0 Professional Edition to develop my web pages. I have a problem
2
by: garyusenet | last post by:
I could do with something similiar, can you tell me if you think this would work for me, and if there's any advantage in working with controls this way than how I currently am. At the moment...
1
by: shapper | last post by:
Hello, I am creating a user control where an Asp.Net control is used. It can be either a button, an image button or a label. I am trying to "expose" the Asp.Net control properties and events...
2
by: DC | last post by:
Hi, I am using a GridView to present data in a DataTable, which I store only in ViewState and when the user hits the "OK" button the rows in the DataTable will be used to execute transactions. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.