PDA

View Full Version : Need help with Javascript + MDB



etok
10-29-2007, 04:04 PM
Hi,
I have an MDB file that is updated through a VB application that I wrote. I now need to find a way to display data from the MDB file in an HTML calendar table. Can anyone help me please?
Thanks

jscheuer1
10-29-2007, 04:32 PM
If MDB is a database, you are still going to need server side code. Since you are already using VB, I am assuming you have asp or asp.Net. If so, that would be the way to go.

etok
10-29-2007, 04:42 PM
Dear John,

Many thanks for responding so quickly, but, alas, I am using VB 4 and I couldn't find in my VB 4 anything about ASP or NET... I have no idea how to retrieve my data from the MDB database file and display it in an HTML page. Maybe VBscript?

Thanks

Twey
10-29-2007, 04:59 PM
It is an Access database file.

The answer is that you cannot. MDB is a secret, proprietary file format, and as such few tools can read it. I suggest storing it in a SQLite database, but as John says, you'll still need a server-side script to access it.

VB4 is an obsolete version of an obsolete (and hideous) language. I really suggest you move to a real programming language. Even the related VB.NET is a vast improvement over the classic VB series.

VBScript is very rarely a viable option for anything client-side, since it will only run on Internet Explorer on Windows. It's possible that this could be done with VBScript or Javascript and ActiveX, but the solution would be IE5+/Win-only, and so not worth the effort, and certainly not usable in a real application or site unless said application or site were to be accessed only from an intranet where the operating environment is very limited. You'd also need to set the client's machine's security settings very low in order for it to run.