Search results

  1. B

    Create functions within a form

    Hi on one form i have lots reasons to call the same bit code i.e. from different buttons or key presses. Rather than write the code over and over again i would like to know how to write the code once and then call it when needed. Thanks in advance
  2. B

    Memberships

    Hi Im trying to create a membership directory for a club but people pay a monthly fee can anyone offer some advice or has an example that i can work from to create this. I need to to just keep there name and address etc and their payment history and then every month print a list of those who...
  3. B

    Send a report via email as attatchement

    On my form i have created a button from the wizard and selected to email the report as an attatchment. when pressed the user is asked what format it should be sent in. Is there anyway we can specify in the code what format we want instead of leaving it up to the user. Private Sub...
  4. B

    Automatic Report in Email

    I have used the same criteria and works well. On my form i have just created a button from the wizard and selected to email the report as an attatchment. when pressed the user is asked what format it should be sent in. Is there anyway we can specify in the code what format we want instead of...
  5. B

    Public Parameters

    I found a further problem that when i try to edit the results of the query in datasheet view they are un editiable. Am i not allowed to edit the results or is there something wrong
  6. B

    Enable a button

    That works. The only problem with switching the visibility on and off is that it leaves gaps in the form layout which personally i think looks messy. But Thank you for all your help
  7. B

    Enable a button

    I am trying to enable according to a variable. I have disabled a button by default and want to on form open enable it a criteria is met. I have written the following: Private Sub Form_Open(Cancel As Integer) If gvusertype = admin Then Me.adminmenu.Enabled End If End Sub However i...
  8. B

    Public Parameters

    Thanks that worked, and sorry about your name.
  9. B

    Public Parameters

    I have a problem with public variables, I tried exactly what Pat Hardman wrote in Public Variables as Parameters and found that my returnfunction would always be a null value even though my GV did have a value. here is my code: MODULE: Option Compare Database Dim gvactype As String Public...
  10. B

    Check Value in Table

    I have to check to see if a value exists in a table. I wondered if a Dlookup would work but i would need it to return a true of false value. Can anyone advise me on the code. Thanks
  11. B

    Daily Stock Summary

    I am trying to design a db that handles a daily stock summary. Tables: tblPurchases tblSales tblStockSummary tblStocksummary: Date | Product Name | Start Stock | Tot Purchased | Tot Sold | End Stock I am trying to figure out whats the best way round this. 1st Idea. to create some sort of...
  12. B

    Problem with Code

    i thought so, so why doesnt my returnfunction take across the gv or am i going about calling them into the wuery all wrong with a return function
  13. B

    Problem with Code

    I have transfered the code across the a class module but still the returnfunction has no values. I have attatched my db so you may have a look. frmsearch is the form that loads the values into the variables. It opens frmpartslistresults which is based on query, QryPartslist. Thanks for having a...
  14. B

    Problem with Code

    I rearranged the code and it now loads the forms. When it produces the msgbox of the gv it returns the correct values however when i call the returnfunction so i can use the variables in the queries there are no values. is there something wrong with my module. Option Compare Database Dim...
  15. B

    Problem with Code

    I have created a Global Variable and function as below: Option Compare Database Dim gvactype As String Dim gvchecktype As String Public Function Returngvactype() As String Returngvactype = gvactype End Function Public Function Returngvactype() As String Returngvchecktype =...
  16. B

    Global Variables in Queries

    Global Vairables Could someone just remind me how global variables work. i have set a gv in my module :- dim actype as string how do i set the value from from a form e.g. actype = me.frmactype and how would i call this into a query criteria e.g. [actype] Thanks in advance
  17. B

    visual display of volume

    I have a current stock table that is updated accordingly to either a purchase or sale. Is there anyway that this can be shown on a form in a bar chart that either went up or down according to the amount of stock. There is a maximum amount of stock that can be held. Any ideas??
  18. B

    Scrolling text

    My question was to enable a scrolling marquee for example if the text execeeded the box size. The coding that was suggested doesnt work in Access 97 i dont think it has this command?? but i am prob wrong
  19. B

    Scrolling text

    I wondered if it was possible that if i have a field box on a form and there was too much field to see in the box that the text could automatically scroll from right to left. Anybody got any ideas or is this a definate no no! Thanks
  20. B

    Challenge!!Complex Query

    Hi everyone I have this huge query that i need to run below is the SQL code:- aaah SELECT tblOpRotation.ArrDate AS Dte, Format(tblOpRotation.ArrATA,"hh:nn") AS ATA, tblOpRotation.TailNo AS TailNum, tblOpRotation.ArrAirportName AS AirportDscr, tblOpRotation.ArrFlightNo AS CallSign...
Back
Top Bottom