Hello everybody,
I am taking a module called 'Database and SQL' which was compulsory. I have had no problems up to now, sql was fine etc. However, I have never done visual basic of any description and so I have come unstuck.
I have read manuals and this forum but cannot find anything specific. To be honest I know where I have to write the code in Access and the basics (basic code format such as Function ()as integer, End function) but that is about it!
I have been trying to create a few VBA functions. One is this:
There is an attribute called orders which has different order amounts (i.e. different customers orders are different prices). I am wanting to create a function called Total which receives an amount as an argument and depending on the height of a different category gives the following:
Up to 500 'Small order'
From 500-1000 'Normal order'
>1000 'big order'
The database is for a plant company which has different categories of plants which are all different heights (hence the category and height part).
I hope this is clear and I can post the relationship schema if further clarification is needed.
Thankyou =)
I am taking a module called 'Database and SQL' which was compulsory. I have had no problems up to now, sql was fine etc. However, I have never done visual basic of any description and so I have come unstuck.
I have read manuals and this forum but cannot find anything specific. To be honest I know where I have to write the code in Access and the basics (basic code format such as Function ()as integer, End function) but that is about it!
I have been trying to create a few VBA functions. One is this:
There is an attribute called orders which has different order amounts (i.e. different customers orders are different prices). I am wanting to create a function called Total which receives an amount as an argument and depending on the height of a different category gives the following:
Up to 500 'Small order'
From 500-1000 'Normal order'
>1000 'big order'
The database is for a plant company which has different categories of plants which are all different heights (hence the category and height part).
I hope this is clear and I can post the relationship schema if further clarification is needed.
Thankyou =)