Hello,
Im using redemption in a database created in ms access.
At the moment emails are generated depending on various actions within
a database. To give an example:
Public Const Email_StencilOr derer = "CA" 'Joe Bloggs
Then later on when an action is taken I will call this like so:
Call Email.SendMessa ge(GetEmail(Ema il_StencilOrder er), "Please order
stencil number " & stencilNumber & ".", "xxxx," & vbCrLf & vbCrLf &
"Please order stencil number " & stencilNumber & " (" & customer & " -
" & product & ")! The data is found in \xxxx\" & stencilNumber & " and
you can find other information (how the board is panelised, etc) using
the xxxxxxx' icon on your desktop." & vbCrLf & vbCrLf & "Ta!", False)
The problem is that people could well be changing jobs quite soon and I
wanted an easier way of updating the list of people who do various
tasks.
I'm thinking (sadly) that im going to have to create a table and have
everything in there which is going to mean a lot of re-coding.
I've never heard of a form updating code, but thought I'd ask anyway..
Ta,
Chris. 1 2292
<ch****@cemgraf t.co.uk> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com... Hello,
Im using redemption in a database created in ms access.
At the moment emails are generated depending on various actions within a database. To give an example:
Public Const Email_StencilOr derer = "CA" 'Joe Bloggs
Then later on when an action is taken I will call this like so:
Call Email.SendMessa ge(GetEmail(Ema il_StencilOrder er), "Please order stencil number " & stencilNumber & ".", "xxxx," & vbCrLf & vbCrLf & "Please order stencil number " & stencilNumber & " (" & customer & " - " & product & ")! The data is found in \xxxx\" & stencilNumber & " and you can find other information (how the board is panelised, etc) using the xxxxxxx' icon on your desktop." & vbCrLf & vbCrLf & "Ta!", False)
The problem is that people could well be changing jobs quite soon and I wanted an easier way of updating the list of people who do various tasks.
I'm thinking (sadly) that im going to have to create a table and have everything in there which is going to mean a lot of re-coding.
I've never heard of a form updating code, but thought I'd ask anyway..
Ta,
Chris.
Storing it in a table is definitely the way to go, but your re-coding could
be easier than you think. At its easiest, you simply create a function
GetStencilOrder er() to replace your public constant which could simply rely
on the DLOOKUP function. Then do a find and replace through your whole
code.
However, once you have a few of these, it would be a pain to ember all the
function names, so you could make use of enumeration variables e.g.
Public Enum MySetting
SET_STENCIL_ORD ERER
SET_EMAIL_MESSA GE
SET_DATA_PATH
End Enum
You can then write a function like
Public Function GetMySetting(S As MySetting)
The function gets its value from a table with an ID column which matches the
enumeration variable - e.g. SET_STENCIL_ORD ERER goes to the row with an ID
of zero, SET_EMAIL_MESSA GE goes to the row with an ID of 1, etc.
Does that make sense? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jason |
last post by:
Let's say I have an html form with 20 or 30 fields in it. The form
submits the fields via POST to a php page which updates a table in a
database with the $_POST vars. Which makes more sense?
1) simply UPDATING the values for all fields in the table, whether or
not any particular field has actually changed
2) running a second SELECT statement and comparing the $_POST vars to
the returned values, and only UPDATING those that have...
|
by: Darrel |
last post by:
I'm creating a table that contains multiple records pulled out of the
database. I'm building the table myself and passing it to the page since the
table needs to be fairly customized (ie, a datagrid isn't going to work).
On this page, people can update a variet of records. On submit, I want to
then go in and update all of the records.
Normally, I'd make each form element include a runat: server and then
declare it in my codebhind so I...
|
by: sqlboy2000 |
last post by:
Hello all,
I have something very simple going on here and I'm scratching my head
as to what the problem is. There are 4 items in my project, 2 webforms,
a user control, and a module:
WebForm1.aspx
ChangeValue.aspx
WebUserControl1.ascx
Module1.vb
|
by: jaYPee |
last post by:
does anyone experienced slowness when updating a dataset using
AcceptChanges?
when calling this code it takes many seconds to update the database
SqlDataAdapter1.Update(DsStudentCourse1)
DsStudentCourse1.AcceptChanges()
i'm also wondering because w/ out AcceptChanges the data is still save
into the database and it is now faster.
|
by: Mark R. Dawson |
last post by:
Hi all,
I may be missing something with how databinding works but I have bound a
datasource to a control and everything is great, the control updates to
reflect the state of my datasource when I update the datasource - awesome,
but I have an issue with updating from a different thread.
Here is my datasource, a person class that raises the PropertyChanged event:
class Person : INotifyPropertyChanged
{
| |
by: =?Utf-8?B?YmFrZXJzaGFjaw==?= |
last post by:
Unless my app is EXTREMELY simple, I get the cross-threading error message
regularly when updating controls on a Windows form.
My latest example involves a dll that runs a System.Threading.Timer,
updating private shared variables. When it finishes updating, it raises a
NewData event. My app responds to that event by updating display controls
(labels in this case). I have to use a delegate and update them like this:
Private Sub...
|
by: directory |
last post by:
hey guys,
I've got a weird one for ya....i have a form which takes user input in
the form of textbox's etc. It then grabs some details from a file and
updates some of the labels with some info like numbers etc.
Anyway, i'm just updating the field properties like lblnumber.Text =
variable1;
Now the weird thing is that...when i run the app and it cycles through
|
by: Spoogledrummer |
last post by:
Hi it's me again, still working on the sam 5 minute problem so feeling kind of thick now.
I've dumped the idea of using a textarea for now and am using a textbox instead but am struggling when it comes to updating the database, I've tried several different methods and the one I'm currently battling with is as follows:
%
set objconn=server.CreateObject("ADODB.connection")
objconn.Mode=3
objconn.Open ("DSN=localserver; User ID=blah;...
|
by: AlexNunley |
last post by:
I've adopted a moderately sized (65k records) active use database (Access 2000, Windows XP). One of the most commonly used forms is whats called the RMA generation field, used to add claim information to a table on an item-by-item basis. the form is pretty straight forward, but is in need of updating.
In talking with some of the users its been decided to add a few fields to the form. Digging through the guts, I find commands, the cmdAddParts...
|
by: BizWeb |
last post by:
Hi, i am new to ASP.NET. I have write a very simple code to try the
updating of the GridView but it is not updating the data. Below is the
simple code that i have use.
<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |