Search results

  1. J

    Problem with a Subform missing Product Code Description

    Make sure that the property ColumCount (on the format tab) is 3 set the column width property to: 0;0;5cm to hide the keys. JR
  2. J

    Creating a query to display a weeks records

    Woulden a parameter query do the trick: PARAMETERS StartDate DateTime; SELECT * FROM MyTable WHERE MyDateField Between [StartDate] And [StartDate]+5; JR
  3. J

    convert absolute to relative path

    No problem JR
  4. J

    convert absolute to relative path

    stAppName = CurrentProject.Path & "\plat_blit_new.exe " JR
  5. J

    Adding a date to an Access EMailDatabaseObject macro

    Try this in your macro: Attached is the shipping report for & " " & Weekdayname(Weekday(Date())) & " " & Date() or Attached is the shipping report for & " " & Format(Date(),"dddd") & " " & Date() JR
  6. J

    DLOOKUP question

    Then remove the underscore from your second Dlookup =DLookUp("[SCF ID]","tblCustomers","[ID] =" & [Forms]![EnterNewTransaction]![ID]) JR
  7. J

    Access Run Time error '-2147217900'

    Might be because Transaction is a SQL reserved word, try wrapping it in square brackets. myCommand.CommandText = "INSERT INTO [Transaction] ([TrxNumber],[CustomerID],[MovieID]) VALUES (" & T & ", " & C & ", " & M & ")" also sql is picky about spaces around keywords. JR
  8. J

    [MSACC2010] Password protect backend?

    Attached is a very basic sample of the consept in the link I gave. -Unzip the folder to C:\ -Open the MyFrontEnd.accdb (access 2010) -Try and open the table MyTbl, you should get an error of an invalid password. -Now open the form frmConnection and let it stay open, you should now easily open...
  9. J

    [MSACC2010] Password protect backend?

    Thats true for the normal user, but if you know how it isen't very difficult :eek: just hacked my own test db :p But if your interested here is a securety consept discussed at UtterAccess: http://www.utteraccess.com/forum/Access-2007-security-t1242310.html&hl=midtier JR
  10. J

    [MSACC2010] Password protect backend?

    There isen't a fullproof way to secure an Access BE, sure you can password protect the BE but the password is exposed in the connection-string to the BE tables so a savy hacker will be able to read it and use it. But for the curious it should stop them from messing with the tables. To fully...
  11. J

    How to include and exclude staff names in queries?

    1: <> "Johnson" 2: ="Johnson" JR
  12. J

    another wierd one. declaring strings in module

    Nothing strange about it since your variable test1 is declared as Variant and not as a string. In VBA by omitting a type declaration a variable will be typecast as the default Variant type and variant can handle nulls etc. JR
  13. J

    Delete Outlook Task in code

    Can this site help you: http://www.codeforexcelandoutlook.com/outlook-vba/taskitem-object/methods/ JR
  14. J

    HELP! Trying to make a query where every 5 orders a customer receives a discount.

    See attached. Added a form which uses DCount() to find who gets Discount, note the criteria parameter of the function which points to a form control called MyID that has its controlsource bound to the Customer ID field in the recordsource. JR
  15. J

    How do I display listbox column data in a textbox that is not the bound column?

    It should be: =[listfacility].[Column](1) Nothing more. JR
  16. J

    Small Macro Help

    Could it be that macros like querys do not know what .Column(x) is?? You could perhaps use Eval() function to resolve this. [RecordID]=Eval("[Combo10].[Column](1)") or [RecordID]=Eval("Forms!FormName.Combo10.Column(1)") JR
  17. J

    How do I display listbox column data in a textbox that is not the bound column?

    Put this in the controlsource of your textbox =NameOfListbox.Column(1) Listboxes and comboboxes are zerobased so the "first" column is 0. JR
  18. J

    How do i allow users to select a item for a listbox and then display related records

    Sorry about the delay, it was a slight error in the syntax I gave you, should have re-read the link :o Did you look at the link I gave? To refrence a control on a subform you can use the full form refrence or use Me. syntax Full form refrence...
  19. J

    How do i allow users to select a item for a listbox and then display related records

    Bookmark this page: http://access.mvps.org/access/forms/frm0031.htm The syntax would be: Forms!SubformControl.Form.Listboxname.Requery JR
Back
Top Bottom