FAT! FAT! FAT!
see above for any links
These people are wonderful in helping me and I thank them very much for donating there time and knowledge
NOTE: This is far more complex then it use to be and so is our technology world many different make and manufactures
have to share information of both data and user interface.
I finally began to see what needs to talk to what;
1) there is a user setting (configuration) in the OS (win10) that needs to be configured
a. install ODBC 64
b. Add a [User DSN]
i. pick "Microsoft Access Driver (*.mdb, *.accbd)"
ii. Give it a name that makes since like "Access64"
iii. [Select] browse to your data base file
[save and/or ok] to acknowledge and close everything out
You have just completed the OS portion and now your ready to start you Lazarus project
1) Project new application
2) drop on DB component and modules
a. like DBGrid, TODBCConnection, TSQLTransaction, TSQLQuery , TDataSource
3) Test db connection with the TODBCConnection and configure it
a only one setting [DatabaseName] = "Access64" as created above
b. you now test it,
set [Keep connected] to TRUE
c. The big test -- [Connected] to TRUE
at this point if you get any errors they must be resolved.
FAT1= I remarked out all code from many examples that make any setting to the ODBCConnection1 parameters.
FAT2= do not assign any data base files leave blank
FAT3= do not use any DSN files or reference there of
FAT4= rem out all settings to Dataset1 and DBGrid1
FAT5= rem out all setting to SQLQuery1
Now you need to build the communication links of the tree
OS talks to your data base file via UserDSN confuguration "Access64"
ODBCConnection1 talks to [DatabaseName] "Access64" from the ODBC UserDSN settings
and to [Transaction] SQLTransaction1
SQLTransaction1 talks to [Database] ODBCConnection1 (not circular but two way communication)
also set [Action] to caCommit
set [Active] to TRUE
SQLQuery1 talks to [Database] through ODBCConnection1
and to [Transaction] to SQLTransaction1
set [UsePrimaryKeyAsKey] to false (should be default)
set [SQL] top line "SELECT * FROM car" (car is the name of my table)
DataSource1 talks to [DataSet] SQLQuery1
DBGrid1 talks to [DataSource] DataSource1
The only programable code I use now is on "FormCreate" is SQLQuery1.Open;
Everything is hard set and nothing programable which makes this my measuring stick.
This is my first successful full view only test project. now I have a starting point to build with.
thanks to everyone