Solved

Freezing a field

Posted on 2013-06-13
7
266 Views
Last Modified: 2013-07-08
I have a SQL database where a front end is web design.  I have a couple of fields that are shared between departments.  What I would like to know is: Is there a way to freeze a field once data has been entered into this field.

I have attached what my field looks like and I have attached the line of code that belongs to that field.
Experts6.13.13.docx
0
Comment
Question by:TCHGirl
  • 4
  • 3
7 Comments
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39246522
and if it is entered incomplete or incorrectly?
0
 

Author Comment

by:TCHGirl
ID: 39247645
Here is the reason I need to know if this is possible.  We have at least 3 departments that share this field.  One department puts the information in and the other 2 departments see it on their screen.  If the information does not apply to their client they are removing it.  We don't want that to happen because it effect reports that use this field.

When a number is typed in that is when I want to freeze it so that it can not be removed.  the information is typed in incorrectly then they need to bring the number to the admin and the admin will fix the problem.

Does this make sense??
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39247822
I call this "enter once" and that type of logic is enforced by application code - NOT the database. In most apps I deal with (J2EE) that means the business logic is handled by Java the UI changes from a text box to a display - so the user has no access to alter the field once it has been saved.

What type of technology is that form shown in the attached image? (because that's what needs to change, not the dbms).
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:TCHGirl
ID: 39253223
That is a line of code for that field.  I just put it into word so you could see the code that belongs to that field.

All the coding for this database was done thru notepat ++.  It is a HTML.
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39254989
<td class="box">

Jas ID#<br>Client ID (A/E):<br><input type="text" name="jas_id" size="10" <%if rs.state <> 0 and not rs.eof then%> value="<%=rs("jas_id")%>"<%end if%>>

</td>
does not look like pure html to me, even if you are using notepad (which isn't a great editor to be using)

If .... end if
indicates programmatic logic IS available ('if' is not html)

btw: try this as an alternative editor, it allows for UTF8 too
http://notepad-plus-plus.org/
als note you can run this without installing - if installing is an issue for you
0
 

Author Comment

by:TCHGirl
ID: 39267253
I will give this a try on Monday.
0
 
LVL 48

Accepted Solution

by:
PortletPaul earned 500 total points
ID: 39267390
>>I will give this a try on Monday.
I assume this refers to notepad++

once you have this available, do go through the > Settings > Preferences
on the [New Document/Default Directory] tab there are 2 things you will want...

a. set the default encoding to UTF-8
b. change Default language to HTML (a drop-down lower left of that dialog)
this 'default language' will mean HTML syntax will be recognized and highlighted

look through the remaining preferences too
e.g. [Language Menu/Tab Settings] tab
replace tabs with spaces = ON
(I prefer this, you might also)

[General] tab
show close button on each tab = ON

life is way better with a decent editor

Oh, when using html (or xml) you can collapse the document hierarchy by 'level' using
alt-n (n is any digit, like these:
alt-4
alt-3
alt-2
alt-1

alt-shift-0 (expands back all branches)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Compare and update data between two databases 6 58
SQL Insert Query Help, part2 6 57
MS Access question 11 59
oracle query help 29 77
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now