Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Validation Macro

 
   Database Forums (Home) -> General Discussion RSS
Next:  Replace Sidekick  
Author Message
Keith Austin

External


Since: Jul 18, 2005
Posts: 1



(Msg. 1) Posted: Mon Aug 15, 2005 7:55 pm
Post subject: Validation Macro
Archived from groups: comp>databases (more info?)

I need to produce a macro for a project that I have to do in my course in IT
"Certificate III IT (Software Applications) Unit ICAITUO18C". The macro
needs to validate previously imported data from Text Files. I have already
written the macro to import the data and now this Validate Macro forms part
of that Macro. The case scenario relates to a Music Expo and 3 bands appear
in this exercise. Obviously the previous macro wont complete until this
macro hace been written.

Macro Name: mcrValidate
Description: Validate imported data
Solution:
1. If band name is empty insert name "Douglas Groovers"
2. If band name is "FS" replace with "Funk Sands"
3. If type is "Pensioner" or "A" replace with "Adult"
4. If type is "S" replace with "Student"
5. If status is "Current" or "A" replace with "Active"
6. If status is "NotCurrent" or "N" replace with "Inactive"
7. If type not "Under 14" go to next record otherwise delete record from
table.

The purpose of this is because the 3 different bands use different names /
methods to identify their data, this macro is to make them all uniform.

Scope: To be run once only
Limitations: Specific to text files provided - do not use with other text
files.

Hint: Tools>Options>Edit/Find tab and remove tick for confirm - Record
changes so Access does not prompt for confirmation on every record to be
deleted.

I have made an atempt on the first "Condition" but i cannot see any action
relating to inserting/changing the data in the empty field (replace empty
with "Douglas groovers" I was given a hint to use "Condition- [Band
Name]=Null then Action - SetValue" at the bottom there are 2 areas to fill
in Item and Expression. The previous macro opens a form "frmValidate" and
there are text boxes on this form one of which is "Band Name" so on the Item
area I use [Forms]![frmValidate]![Band Name] then from there no matter what
i place in there including just "Douglas Groovers" I get error messages I
have done all this as instructed by my tutor either I have mis understood
her or I have been given the wrong information. Any assistance will be
greatly appreciated. I am really an absolute beginner where Access is
concerned. I can only be guided by the info I have. The learning material /
courseware does give ideas for "some macros" but not of this nature.

Regards Keith

 >> Stay informed about: Validation Macro 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Unify Database information? - Hi. I am trying to find any and all information out there regarding the Unify database. Specifically the older version which runs on SCO OpenServer. I am trying to export data from this database with an applcation's query tool, but the tool is causing..

mysqldump - Hello, I'm trying to do a dump of my database with one line for each INSERT: INSERT INTO Table VALUES(...); INSERT INTO Table VALUES(...); ... I couldn't do it with mysqldump. I tired the different options, but I always get 1 big INSERT line: INSERT..

OWB client and HR sample schema - Buddies, I'm new to Oracle Database Warehousing and OLAP, I've just installed OWB 9.2 for experiment. When I tried to connect to the sample schema HR, I encouter a error with message "API5022 Cannot connect to specified repository. verify connecti...

Is Primary Key index in MySQL? - In MySQL database, if I create a primary key, is that true that this primary key is also a index? If I create a primary key on one column, I don't need to create an index for this column. Is that true? Thanks a lot!

[UPD] SQLeonardo MMV.II - SQLeonardo is a database query tool written in Java. Include FreeQueryBuilder to create SQL queries without directly writing SQL. All queries can be saved in a workspace and than reloaded. Works with any JDBC compliant..
   Database Forums (Home) -> General Discussion All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]