I don't consider myself as anything more than an Access newbie, so please bear with me if I don't understand some syntax et cetera.
Right. Time to jump into the problem.
I have a form, lev3_site, which I will use to show details of places where our hardware is set up (I work for a rail company, so this hardware is set up all over the UK, and more). On this form there is a list box (currently with no data source), which will take the field 'Sitename' from a table (tbl_siteinfo) and display the results - I still haven't done this yet, bearing in mind I might not actually know how to do this!
What I want to do, is when a site name is clicked in said list box, a number of fields on the form (listed below) are populated with the corresponding details (also housed in tbl_siteinfo).
The fields I wish to be populated on the form are site name, maintainer and contact number for now (these are Sitename, Maintainer and ContactNo respectively in tbl_siteinfo).
I just noted I have a tendancy for brackets. That's quite annoying. (Yes, it is.)
Anyway. When it comes to coding, I'm absolutely rubbish. I have no clue as yet how to do any of the above, which is why I'm here - I won't pretend I'll understand any answer completely, but it'd certainly help me getting to grips with VBA and Access.
Also, there is another problem I have, but I suppose I'll leave that until I've managed to overcome this one.
If copies of the database, tables, forms etc are needed, drop me a line.
Thanks,
Matt
Right. Time to jump into the problem.
I have a form, lev3_site, which I will use to show details of places where our hardware is set up (I work for a rail company, so this hardware is set up all over the UK, and more). On this form there is a list box (currently with no data source), which will take the field 'Sitename' from a table (tbl_siteinfo) and display the results - I still haven't done this yet, bearing in mind I might not actually know how to do this!
What I want to do, is when a site name is clicked in said list box, a number of fields on the form (listed below) are populated with the corresponding details (also housed in tbl_siteinfo).
The fields I wish to be populated on the form are site name, maintainer and contact number for now (these are Sitename, Maintainer and ContactNo respectively in tbl_siteinfo).
I just noted I have a tendancy for brackets. That's quite annoying. (Yes, it is.)
Anyway. When it comes to coding, I'm absolutely rubbish. I have no clue as yet how to do any of the above, which is why I'm here - I won't pretend I'll understand any answer completely, but it'd certainly help me getting to grips with VBA and Access.
Also, there is another problem I have, but I suppose I'll leave that until I've managed to overcome this one.
If copies of the database, tables, forms etc are needed, drop me a line.
Thanks,
Matt
Comment