« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next

Re: Free Download of New Edition of Designing with Libre Office

By: Zimbler0 in 6TH POPE | Recommend this post (0)
Tue, 22 Nov 22 2:59 AM | 19 view(s)
Boardmark this board | 6th Edition Pope Board
Msg. 37655 of 58656
(This msg. is a reply to 37634 by Fiz)

Jump:
Jump to board:
Jump to msg. #

Fiz > Does either of you know where the problem lies in tying in an embedded language to an Access-like base?

Assuming Visual Basic is part of your installed Microsoft Office suite it is really not that difficult. The spaghetti code necessary to successfully pull the contents of text boxes off the forms and tuck it back into either tables or other text boxes (or the results of computations into other places) can be a bear till one learns the proper syntaxes.

OK Looking at an old Access 2000 database. . . I see (on the left side of the window) Tables, Queries, Forms, Reports, Pages, Macros and Modules.

Tables : Where data is stored. Queries : 'Questions' used to extract subsets of the data from the tables. Forms : Can be data entry or data display (often using a query to get the data to be displayed). Reports : Usually based on a query to create something to be printed. I've never used pages though I suspect that might be for creating pages for internet display.

Macros. Macros are just a list of Access Commands to be ran sequentially to automate some series of instructions. On a form one can place a button and clicking on the button then summons the Macro which tells Access what to do when that button is clicked.

Modules are where Visual Basic code is stored in the database. The 'programs' or functions inside the modules can also be called by clicking the buttons on a form. (Said buttons must be programmed . . .)

I'm going to assume you have gotten through the 'Access for Dummies' initiations . . . Create a Form in Design view. find the tool box. Click on the 'Toggle Button' tool and then 'draw' a toggle button on the form. Right Click the new button and select 'Build Event'. 'Choose Builder' comes up and the three selections I have are 'Expression Builder' (which I've never used); Macro Builder (which is what I used most of the time); and 'Code Builder'.

'Code Builder' brings one into the Access Module creation and enables one to write the computer code in visual basic for what happens when that button is clicked.

Also, from the Access main menu, under Tools there is a selection titled 'Macros' and one can call up the Visual Basic Editor from there.

Been toooo long since I messed with this stuff.

Zim.




Avatar

Mad Poet Strikes Again.




» You can also:
- - - - -
The above is a reply to the following message:
Re: Free Download of New Edition of Designing with Libre Office
By: Fiz
in 6TH POPE
Mon, 21 Nov 22 2:39 PM
Msg. 37634 of 58656

Zim and De:

The list of things I "intend" to do/learn keeps getting longer (way longer) than the list of things I actually get done/learn.

That said, I continue to put "database programming", in some form, on my todo list every year. I have a lot of needs that could be met by a bunch of small databases, if the programming task didn't take too long. Sadly, this is another year when it is close to put up or shut-up time on the "learn database programming" front...and I look to be going down for another fail.

Access seems really appealing with all the form building integrated with the database design. I know it can be used to create real - and even impressive/big real - programs, because my factory uses an extensive (quite complicated and important) commercial inventory control database program written in Access. It tracks hundreds of thousands of dollars worth of ingredients and seems pretty solid, with lots of code for edge cases, and no real problems reported after years of use.

But God help you if you want to learn how to write such programs! There are all sorts of resources on "how to write Access programs" which are really nothing more complicated than desplaying and simply entering data to a couple of forms and a couple of databases. I actually signed up to take a class in that.

On the other hand, how to actually write VBA code which is integrated with your Access tables seems to be a very much guarded secret: almost harder than figuring out how to break into Fort Knox or something (and rather harder than getting into the Capitol Building, apparently).

It is MUCH easier to find "real" courses and books on writing massive database applications in Python or C# to interact with SQL databases. I don't understand why this void exists...maybe an acknowledgement that the Access model of database simplicity is somewhat unadvisable for reasons I don't understand? It seems a shame, though, because it would be tremendous to be able to snap out quick solutions to everyday organizing problems which don't require all the hardening and overhead of a full-blown relational database SERVER.

Anyway, it looks like there is never going to be a good, open-source /Linux Access-like application. If LibreOffice was going to do this, I'd think they would have already done it. And even Microsoft seems to be substantially moving away from promoting Access. Does either of you know where the problem lies in tying in an embedded language to an Access-like base? Access is certainly proof of concept; I really don't understand why this has, apparently, proved to be a dead-end instead of becoming more of a standard?

Did you encounter major intractable bug problems or massive limitations in your Access programming work that would make everyone more-or-less abandon this path?


« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next