It is cute to hide the CIDFK ; by the way, I mistakenly deleted CID and CIDFK in the form, and the relationship seemingly still exists; then, I got a chance to look into the properties of the control frame of the subform, and found that the underlying link is built between the links of parent field and the child field under data view![]()
Yes that was slightly inaccurate of me... If the relationship had not been pre-defined in the relationships section I think deleting may have resulted in failure of the form but because that relationship is there you are allowed to have the CIDFK completely away.
Good luck you've pretty much got the basics now
Hi there apologies for the delay in coming back to you... working
Right not sure what you are trying to do exactly. Most designers stay away from datasheet for application because you don't quite have the ability to use the controls that easily allow things like combo boxes.
I put together a variation on the previous sales database in my previous posts with three different ways in which to use the drop down or combo box. All implemented in a continuous form.
The first is looking up a value and storing the PK in a number field
The second is looking up a value but storing the text value in a text field
And the third shows a combo box set up with just a textual list attached to the control itself.
All of them can be useful with the first generally being the most subtle with the last being the most obvious.
I'm not sure if this is what you want but have a look at it and it might give you some ideas.
Hi there apologies for the delay in coming back to you... working
Right not sure what you are trying to do exactly. Most designers stay away from datasheet for application because you don't quite have the ability to use the controls that easily allow things like combo boxes.
I put together a variation on the previous sales database in my previous posts with three different ways in which to use the drop down or combo box. All implemented in a continuous form.
The first is looking up a value and storing the PK in a number field
The second is looking up a value but storing the text value in a text field
And the third shows a combo box set up with just a textual list attached to the control itself.
All of them can be useful with the first generally being the most subtle with the last being the most obvious.
I'm not sure if this is what you want but have a look at it and it might give you some ideas.
By the way, it seems I could not find the combo box in your database, is there anything missing from me?
That's because I attached the wrong file!
OK I'll try again this time hopefully with the right file
As before open up the form F001 after entering the database.
With regard to the form..
You can change how it is displayed in several ways experiment with the pop up and modal properties of the form also within the onload event of the form you can put in short pieces of command like
DoCmd.Maximize - which maximizes the form to the window of the database
If Pop up is set to on this will maximize the form to the screen if it is off it will maximize it to the database window.
Have a look and see how you get on.
Ok minn a slight correction its code triggered by events..
Some general principles I followed when I was starting out…
Concentrate on high value and try not to duplicate information from other systems. You want to avoid taking information out of one system and putting it into another system for instance. I'm slightly worried your taking information out of an accounting package and entering it into your own system.
Set realistic goals in what you wish to build.
Start small and build forward
Concentrate on simple things initially that you know completely initially.
Initially expect to be entering the information yourself - as a learner this will really focus you on user experience and ease of operation which is probably completely integral to good system design.
Good target systems can be where you have two overlapping systems both which are bad and you see that you can combine them and improve the design at the same time.
Don't fall in love with your own ideas - if its not working ditch it. Remember I did say you might have to ditch the project if it wasn't working out. About 3/4 of the things I build aren't actually ditched they just kind of atrophy away through neglect! You'll never do all the things you can think of so concentrate on action. The secret to getting things done is to take ACTION.
Remember bespoke databases are best fit for procedures that are repetitive and unusual.
Even the most advanced in here tend to shy away from building Stock control and Invoice systems as there are so many good off the shelf packages out there Nonetheless it can be useful to sometimes try these things as a learning experience. Modelling packages are tricky as well because they are so specific to an organisation and often require a lot of data input for relatively little on the other side. As a result users can spend all there time inputting information that may be a simple duplication of other systems.
The good thing is that you probably have a good basic understanding of queries tables and forms now.
Here's a couple of suggestions that might be considered as possible projects.
Where do you keep all of your passwords for all the differing logins you have? Isn't it bloody confusing wouldn't you like to have a list that you can sort by your login - by site - or by password. Do you need to remember the link to the site? I have over 90 passwords for things now and keep them in a database with suitable security precautions it's very useful.
The first database I built was a CRM - Customer Relational Management System something which I still use today just a professional contact system. A lot of professionals seem to loosely manage their personal and professional contacts and these often stretch into the thousands over long periods of time. This is an ideal task for your first database. As a businessman that may be a good thing to develop for yourself. Ironically professionals seem to be as bad as everyone else in storing their contacts.
Another thing that databases can be very good for is asset management particularly of property. I have an asset management application that tracks planning permissions on some 2,000 sites It is now tracking moneys as well and legal documents I've set it up as a sales ledger and works quite nicely adequately tracking millions of pounds in receipts. The important thing here there was absolutely nothing on the market place at that time to do this work.
Project management can be great as well. What projects are you involved in - what staff are involved in those projects when are tasks coming up and who will be involved in those. I've always found off the shelf project management software both complicted and inappropriate.
Large companies often have differing systems between departments each with their own referencing systems. Rosetta lists which link one key reference to another key reference remember when designing systems to include these important keys
Thought of an idea that might be useful related to your sales database.
See if you can get your system to show you sales
by month
by product
and if there is such a thing by customer...
It should get you thinking about using calculated fields in queries and you might have to think about things like a pivot table as well.
And in business you always want to see if there's a link between months and sales and keep and eye on your best customers / products.
Hi Mingfeng
Select queries neither add nor detete information per se but the fields that are revealed can be edited or will allow for additions.
Although Access will allow you to design forms on tables and for simple projects there is really nothing wrong with this practice if you are wanting to build applications that are going to be used by lots of users or you want to have the ability to upsize the database to for instance a SQL Server backend the best practice is to use the record source of forms as queries this has several advantages for improving the operation of databases over networks and when lots of people are using it although primarily when using an SQL backend.
The reasoning is that Select queries only give you a subset of the information so the idea is that by only pulling down a subset of the total fields in a table you are dragging less information across your local area network which is obviously quicker and more effiicient. You can get away with inefficient design when there are a small number of users but it becomes increasingly important as concurrency and network distances increase.
The database you are looking at seems quite well layed out so I suspect that the designer has spent a bit of time learning his craft and has been following best practice in its design.
If you can get into the practice of designing forms on queries if you make the leap to SQL Backends (you can then design databases used by 100s of people at the same time) it will be easier to adapt your databases (although still not totally straight forward).
Is this something you purchased? This is a great idea it gives you a step up and you can get in there and alter things as you wish.
When you start designing your own systems it gives you clarity as to what is happening but you start to see that there can be a lot of work to get things working exactly how you want them to.
Another source of databases that users can go on to "edit" is here. The prices are almost free in terms of usual business fees - I haven't tried any of them but the idea seems very good.
http://www.accesstogo.org.uk/
PS : Feel free to start a new thread you have a new question might open up your questions to othersAfraid you might be stuck with my opinions otherwise.