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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by trezlub

  1. trezlub

    Working out which control has focus at runtime

    I have a form that has many controls on it. How, at runtime, can I work out which of the controls on the form is currently in focus? All help appreciated.
  2. trezlub

    Identify item within a combo box on hover

    To see a very basic example of this, create a new exe and put a combo on form1. Then chuck this code behind the form and run it. It may do what you need it to do. If it does then happy days. Private Sub Combo1_Change() Combo1.ToolTipText = Combo1.Text End Sub Private Sub Combo1_Click()...
  3. trezlub

    Return a list of available outlook profiles

    Why doesn't anyone know the answer to this?!! Help!
  4. trezlub

    Testing a print has worked from vb

    How do you test that a crystal report (that is embedded in vb) has been successfully printed using the 'ptintout' method? To my knowledge it does not return a value to indicate if it was succesful or not. I have many users printing from a network printer and ,upon printing, a message box...
  5. trezlub

    parameters in crystal reports - what should I do?

    Always use stored procedures over the SQL designer. Stored procedures are very often executed on a server and therefore the SQL will run more quickly here than if it were placed in the designer. Another advantage of using the stored procedure method is that if your report changes for whatever...
  6. trezlub

    Return a list of available outlook profiles

    Doesn't anyone know the answer to this? I need help. Come on, I thought all you lot out there knew a thing or two. Please help.
  7. trezlub

    Return a value from a report?

    and I was gonna ask for an autograph too. Never mind. Cheers for your help.
  8. trezlub

    Return a value from a report?

    Jim Broadbent? Did you play 'Roy Slater' in Only Fools and Horses? That DelBoy is a nutter isn't he?!
  9. trezlub

    check for invalid dates

    validate the input data. It is the easiest way in the long run. You don't want users typing in any old rubbish. Be aware that if you let garbage in the chances are garbage will come back out. Validate the data!!!!!!!
  10. trezlub

    Return a value from a report?

    That is basically what I did in the end for want of a better solution. It seems very limiting to me that a value cannot be returned. This now means if any logic is altered in calculating this value I then have to alter the logic in two places rather than the one, which is poor for maintenance...
  11. trezlub

    check for invalid dates

    try using the isDate function. The function returns a boolean. Something like this will help you: If isDate(<someDate>) then waffle... waffle... waffle... end if
  12. trezlub

    SQL expression in report

    The SQL error is occuring because your syntax is wrong. Try this instead: SELECT * from tblPolicyDetails A WHERE EffectiveDate in(SELECT MAX(EffectiveDate) FROM tblPolicyDetails B WHERE A.RiskID = B.RiskID)
  13. trezlub

    Return a value from a report?

    I am running a Crystal Report from VB6 which produces a financial report. I wish to return the final grand total back from the report to VB and then stuff it in a variable. Is this possible? In other words, can Crystal return values. I am populating Crystal by linking it to a stored...
  14. trezlub

    Return a list of available outlook profiles

    I am using VB6 to talk to exchange and do all the usual stuff such as setup appointments on calendars etc. Does anyone know if it is possible to obtain a list of all available profiles for a user, rather than having to input a profile name and then 'resolve' that name? I am making the...
  15. trezlub

    'Save Data with Report' from VB

    In the report file inself, i.e. the .rpt file, choose the option to 'Save Data With Report'. When you save the rpt file make sure that this option is chosen but also that no data is currently saved with it. Then from VB code simply save the report and the data will be saved with the report...

Part and Inventory Search

Back
Top