Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. WarriorPrincess

    Delete entries from a One table in a one-to-many rel?

    Rick, Thanks for the compliment. Yes - this is my first exposure to SQL and I am suffering lots of headaches as a result. NOTHING I want to do seems to be as easy as it seems! However, the response from this forum has been quick and very helpful so I shall definitely be coming back.
  2. WarriorPrincess

    Delete entries from a One table in a one-to-many rel?

    RickSpr Thanks for this but I am new to Access and have taught myself out of a book! I can see how your code would do the updates to records which already exist in tblSupplier but how would it add the new records in as well? Wouldn't I have to do a separate Append assuming that a query of...
  3. WarriorPrincess

    Delete entries from a One table in a one-to-many rel?

    Basically the problem is as follows: tblSupplier is a "permanent" table in my database which contains information about all our suppliers and is keyed on SupplierCode. Our Order system will be exporting a file each month which will list all details about all our suppliers. Some of the...
  4. WarriorPrincess

    Delete entries from a One table in a one-to-many rel?

    I have 2 tables in a one-to-many relationship. The "one" table (tblSupplier) contains a SupplierCode field which is unique and is also the primary key. The "many" table (SupplierList) contains data from an imported file which I am going to use to append records to...
  5. WarriorPrincess

    Check date created on a file

    I think you are missing another call to the DIR function just before the WEND statement
  6. WarriorPrincess

    Lotus Notes email - Ughhhh

    P.P.S. Sorry forgot - If you have loaded the MSDN onto your machine, have a look in the samples directory. You will find a VBMail project which shows that use of MAPI.
  7. WarriorPrincess

    Lotus Notes email - Ughhhh

    If you are talking about mail-enabling your application, you are talking about MAPI or you can use the "Domino Mail Collaberation" object. I warn you , however, that mail enabling Notes CAN be rather tricky depending upon your setup. The best thing I can suggest is to logon to the...
  8. WarriorPrincess

    Hiding columns in Excel using VB

    Try Selection.EntireColumn.Hidden=True
  9. WarriorPrincess

    System Temp Folder

    Public Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long Use as follows: Dim sDir As String Dim lBuf As Long Dim lReturn As Long lBuf = 100 sDir = Space$(lBuf) lReturn = GetTempPath(lBuf, sDir)...
  10. WarriorPrincess

    Text Filter For TextBox

    Sorry I'll make that more detailed (and accurate)! In the KeyPress event do: If KeyAscii = 72 Then KeyAscii = vbNull End If This example allows entry of any characters EXCEPT uppercase H. So you will need to alter the IF statement to fulfil yur requirements
  11. WarriorPrincess

    Text Filter For TextBox

    In the KeyUp Event, check the KeyAscii code and ensure that it is within the alpha range you want. If it is just exit the sub else set Cancel=true
  12. WarriorPrincess

    Date Diff between 2 dates after ignoring weekends

    Try the DateDiff function using the "w" (weekday option) interval. So... DateDiff ("w",date1,date2)
  13. WarriorPrincess

    Office 2000 help box greyed out

    I have had the same problem with Access. However, it appears to be transitory in that some days it works and some days it doesn't. I have SPd Access and done the repair that it seems to frequently demand but this has made no difference. The only way that I have found to get over the problem is...
  14. WarriorPrincess

    Passing an array into a module subprocedure

    If you want the arg2 paramater to be an array of controls, then you need to load the CONTROLS into the array and not the NAME of the controls. So do something like this. This will list out the names of each control on the form. Private Sub cmdDoit_Click() Dim s() As Control Dim n As Integer...
  15. WarriorPrincess

    Passing an array into a module subprocedure

    In the Subprocedure, try: arg2() as control
  16. WarriorPrincess

    How to detect printer on client machine ??

    Staright out of the MSDN - This will give you a list of available printers on the machine as listed in the Printers Collection: Private Sub LoadPrinters() Dim pr As Printer For Each pr In Printers Combo1.AddItem pr.DeviceName Next pr Combo1.Text = Printer.DeviceName End Sub
  17. WarriorPrincess

    Pulling Data From CSV File...

    Simplest is usually best: Set TS=FSo.OpenTextFile("your file name",ForWriting,True) for p=lbound(sPlayers) to ubound(sPlayers) TS.WriteLine sPlayers(p).sPlayer & "," & CStr(sPlayers(p).nScore) next TS.Close
  18. WarriorPrincess

    Pulling Data From CSV File...

    Simplest is usual best: Set TS=FSo.OpenTextFile("your file name",ForWriting,True) for p=lbound(sPlayers) to ubound(sPlayers) TS.WriteLine sPlayers(p).sPlayer & "," & CStr(sPlayers(p).nScore) next TS.Close
  19. WarriorPrincess

    Read Registry - deeeep

    OK - Let's do some checking. Use Regedit to check the Mousespeed value under HKEY_CurrentUser\Control Panel\Mouse. Set the SubKey_Name variable to "Control Panel\Mouse" and the SubKey_Value to "MouseSpeed". Run the original bit of code. Do you get the correct value back?
  20. WarriorPrincess

    Pulling Data From CSV File...

    Why don't you try something like this. You will need to add a reference to Microsoft Scripting Runtime (SCRRUN.DLL) This is VERY rough code: ' Put these lines in the Declarations section Type PlayerInfo sPlayer as String nScore as Integer '(you might need a long here) End Type Dim FSO...

Part and Inventory Search

Back
Top