Search results

  1. apr pillai

    financial year report date

    It is not clear what issue you have and your question is not understood. Check the following link for a method that calculates financial year: http://msaccess-tips.blogspot.com/2012/06/accounting-year-week-calculations.html
  2. apr pillai

    Change printer settings with code?

    These links may not be the exact solution but it will give you some idea as how to modify the code and use it: Network and Report Page Setup Network and Report Page Setup2 Network and Report Page Setup-3
  3. apr pillai

    Making gragh out of forms

    The following links may be helpful: http://msaccess-tips.blogspot.com/2007/08/ms-access-and-graph-charts.html http://msaccess-tips.blogspot.com/2007/09/ms-access-and-graph-charts2.html http://msaccess-tips.blogspot.com/2008/02/crosstab-union-queries-for-charts.html
  4. apr pillai

    Query with dates and number of days

    You must make some changes to your query definition. Add the following Parameter definition line at the beginning: PARAMETERS enter_StartDt DateTime, enterDays Long; then make changes to the WHERE clause as follows: WHERE (([Union_part 2].period_start_time >=[enter_StartDt]) And...
  5. apr pillai

    Decimal value to time value

    ? format(4.5/24,"hh:nn:ss") Result: 04:30:00
  6. apr pillai

    Open another database from within Access

    Code in the second line have problems. Correct it as follows and run again: Const strConPathToSamples = ("H:\Access\Switchboard.accdb") strDB = strConPathToSamples Or to match the code I have provided change it as: Const strConPathToSamples = ("H:\Access\") strDB = strConPathToSamples &...
  7. apr pillai

    Query for duplicates across two tables

    Try the following Total Query SQL: SELECT First([tblBook].BookID) AS FirstOfBookID, [tblBook].Title, [tblBookAuthor].AuthorID, Count([tblBookAuthor].AuthorID) AS CountOfAuthorID FROM tblBook INNER JOIN tblBookAuthor ON [tblBook].BookID=tblBookAuthor.BookID GROUP BY [tblBook].Title...
  8. apr pillai

    silly query but i can't solve it... vlookup equivilent

    Sorry, there is an error in the code. Please remove .Value from the middle line. Private Sub Combo192_AfterUpdate() Me!Text261 = Me!Combo192.Column(1) End Sub
  9. apr pillai

    Requery Form not Working

    Try the following: Private Sub Form_Activate() Me.Refresh End Sub
  10. apr pillai

    Including a time measument in query

    Since, you have calculated the difference in minutes you can use the expression diff>#00:05:00# to filter the records. Or use the expression Int(diff*1440)>5 to filter the record.
  11. apr pillai

    Query for duplicates across two tables

    Use the Query Wizard, there you will find a specific option to FIND DUPLICATES QUERY WIZARD.
  12. apr pillai

    Open another database from within Access

    Sample Code to open a second database in different Access Application Window. ' Include the following in Declarations section of module. Dim appAccess As Access.Application Public Function PrintReport() '--------------------------------------------------------- 'Original Code Source: Microsoft...
  13. apr pillai

    silly query but i can't solve it... vlookup equivilent

    Add the following Code in the Combobox_Click() Event Procedure with appropriate changes: Private Sub Combo_Click() Me![Unbound TextBox] = Me!Combo.Column(1).Value End Sub Column(1) refers to the second column of the combobox. Column(0) is the first column with Code.
  14. apr pillai

    VB Code in repot not working!

    When you want to do some other fancy work on your Report check this out: Highlighting Report
  15. apr pillai

    Combo Box to populate Text Fields via Recordset

    Populating a Combobox or List box with different set of information dynamically with the click of a button is interesting to try out. The following link quotes the code taken from Microsoft Access Help documents and explains how work with it. Dynamic ListBox/Combobox Contents
  16. apr pillai

    DB to work only with machine name

    Replace the above code with the following Code: Public Function CheckMachine() Dim strMachine As String strMachine = Environ("COMPUTERNAME") Select Case strMachine Case "USER-PC", "ABC-PC", "ZYX-PC" 'Authorized Case Else MsgBox "Not Authorized"...
  17. apr pillai

    Set focus to textbox in subform after clicking command button

    Setting focus to a field on a sub-form is a two step task. First, we must set focus to the sub-form control. Then we can set focus to the field, as you were trying to do in your command. The following link explains this method in detail: Setting Focus on a field inside a Sub-Form
  18. apr pillai

    reference items on a form from report

    You can build the correct syntax, to address the open Form based control, if you are not sure how to write it directly, using the Expression Builder (Ranman256 meant by the term picker). Use the following method to do a trial run: Open your Main Form in Normal View. Open another Form with a...
  19. apr pillai

    Refer to Form and Subform controls

    correction: forms!mainform!subform.form!txtBox
  20. apr pillai

    TempVars

    More usage examples: http://msaccess-tips.blogspot.com/2011/04/macros-and-temporary-variables.html
Back
Top Bottom