Drop down box help

B

bbddvv

Is it possible to have the ertries in a drop-down list populated by a MS
Access database **AND** still have a default value? if so How?

Thanks in advance.'
 
B

Bolek Wisniewski

Hi,

This is just a suggestion...but after you query your database you can just
initialize the secondary datasource DOM yourself. This is made even easier if
you query the datasource by the yourDataSourceVariable.Query method since
right after it queries you can check if they are null and fill them with
default values...other than that you could alter the xml file of your
database I think. When you extract form files there are initialization xml
files. template.xml is used for your form's default values your secondary
datasource also has them. There should be posts on extracting form files and
zipping them back up with cabarc.exe (your .xsn file is just a zipped file of
all these other xsl, xsd, and xml files) To unzip it you go into design
mode-> File-> extract form files...then you either run the manifest.xsf file
or you have to rezip all the extracted files into an xsn file. The second
method is more grueling but much more 'proffessional' i think, and run time
will be quicker for sure.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top