Link to home
Start Free TrialLog in
Avatar of Rob62
Rob62

asked on

Writing a text file from Database data

At the moment I have a 3 very simple tables - 'survey', 'value', and 'variable' that each follow the same structure of having 2 columns - 'Name' and 'Format'

The Variable table appears as below:

'Name'          Format
custom3        EMPTY
custom34      EMPTY
custom345    EMPTY


What I would like to do is that when any record is added or deleted from this database that a text file with the structure below is created.

<!ELEMENT custom3 EMPTY>
<!ELEMENT custom34 EMPTY>
<!ELEMENT custom345 EMPTY>

<!ENTITY % UDvariable_controls "custom3 | custom34 | custom345 ">

If possible I would also like to be able to have this saved with a '.dtd' extension rather than a '.txt' one. Any help will be greatly appreciated as I have got no-where with this.

Thanks
Avatar of beryl666
beryl666
Flag of United States of America image

what language are u using?
Avatar of Rob62
Rob62

ASKER

Well if it could be done in VBA it would be good. Can use VB.Net though
ASKER CERTIFIED SOLUTION
Avatar of Shane Russell
Shane Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial