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 bkrike 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: *

  • Users: hansu
  • Content: Threads
  • Order by date
  1. hansu

    Problem with SimpleXML and htmlentities

    Hi I load an xml file with simplexml_load_file into the variable $xml. The element 'data' of the xml-file contains an attribute 'temp' with a temperature in degrees Celcius: <data temp="18°C" fineweather="70%" frostborder="3800"/> To transform it to xhtml I use: $vormTemp =...
  2. hansu

    Problem with $_SERVER['PHP_SELF'] in string

    To build a page dynamically I use a string like the following: <?php $header_0_en = <<<EOD <div id="langcontainer"> <?php echo setLanguage($_SERVER['PHP_SELF']); ?> </div> EOD; ?> This produces the error: unexpected T_ENCAPSED_AND_WHITESPACE So far I didn't find a...
  3. hansu

    mshflexgrid, restrict row selection

    I have a mshflexgrid which is bound to a hierarchical recordset. I want the enable the user to select rows of the parent recordset but not the rows of the child recordset. Can anybody show me a way to prevent the selection of the rows bound to the child recordset? Thanks for your assistance.
  4. hansu

    mshflexgrid, highlight selected row

    I'm stuck with the following problem: When the user selects a row in a hierarchical flexgrid (flgReport) I retrieve a value from the selected row which is stored in Col 1. I did it that way in the click event: Private Sub flgReport_Click() Dim strNum$ flgReport.Col = 1 strNum = flgReport.Text...
  5. hansu

    Compile error

    When I create an .exe file of my project I keep receiving the following error message: [Microsoft][ODBC Microsoft Access Driver] Invalid Password I connect to a password protected access database with a connection string like: strConn = "PROVIDER=MSDASQL; DSN=mydatabase; PWD=mt8901;" So far I...
  6. hansu

    DataGrid Navigation

    I want to enable the user to navigate the cells, columns and rows of a datagrid with the tabkey. I set the datagrid's properties as follows: .AllowArrows = True .TabAction = dbgGridNavigation .WrapCellPointer = True According to the docu that should enable the tab key as desired...
  7. hansu

    Mshflexgrid, Problem with first row

    I have a MSHFlexgrid (flgRooms) that has the datasource set to a hierarchical recordset (rstRooms). It is used to show data to the user depending on a date he chooses from a datalist. Whenever the Mshflexgrid is filled the first time the first row does not show. It seems that it uses the fixed...
  8. hansu

    CommonDialog InitDir

    I use the CommonDialog control (cdlMain) for the user to save html files. I want to prevent the user from changing directories. It seems to me that setting the flag cdlOFNNoChangeDir doesn't have any influence. strDir = "d:\hutlogs\confirmations" With cdlMain .CancelError = True...
  9. hansu

    Problem with CommonDialog control

    I use a CommonDialog to let the user select html files: With cdlMain .CancelError = True .DefaultExt = "html" .Filter = "HTML Dateien (*.html)|*.html" .Flags = cdlOFNHideReadOnly + cdlOFNFileMustExist + cdlOFNPathMustExist .ShowOpen End With When I run the project this...
  10. hansu

    DataList refill

    Hi I have a strange problem with refilling a DataList: I have a form where the user can update entries in a table. Once he has done that I want to refill a datalist which is based on a recordset (rstMem) from that table in another form (frmRes). frmRes.rstMem.Requery frmRes.dblstMembers.ReFill...
  11. hansu

    Problem with quoting?

    I am trying to insert a variable $row[link] that is stored in a MySQL-Database into a webpage. So far I have not been able to quote the string correctly at href=\&quot; ... I keep receiving the error: ...unexpected T_VARIABLE in ... $result = mysql_query(&quot;select link, textde from links...
  12. hansu

    Access permission problem

    Hi I am new to PHP and Apache. I want to test my PHP-scripts locally and so far everything worked fine. Now I'm trying to process a form with: <form name=&quot;contact&quot; action=&quot;<?= echo $_SERVER['PHP_SELF'] ?>&quot; method=&quot;POST&quot;> That generates error 403: Forbidden. You...
  13. hansu

    Problem with summing up values

    In an access-program to manage the stock of products I retrieve the following fields from a table to get the remaining stock of a product: QUANTITY, LENGTH. (And of course the primary key) If for a certain LENGTH the same quantity has been booked out (negative values) as has been booked in...
  14. hansu

    Problem summing up values

    In an access-program to manage the stock of products I retrieve the following fields from a table to get the remaining stock of a product: QUANTITY, LENGTH. (And of course the primary key) If for a certain LENGTH the same quantity has been booked out (negative values) as has been booked in...
  15. hansu

    Problem with deleting record from recordset

    I use the following code to delete a record from the recordset rstOrders. rstOrders contains just one record. The record is taken from an Access DB. Cursor type is adOpenStatic, adLockOptimistic. Private Sub cmdDelete_Click() Dim intAnswer As Integer On Error GoTo DeleteErr intAnswer =...
  16. hansu

    Missing dependency file

    I installed an application that I developped with VB6 on a user's machine. Everything is working fine except compacting the Access DB causes an error: Database name or number is wrong. To provide the possibility to compact an Access DB I used JRO. The reference to JRO 2.5 library is added in the...
  17. hansu

    CompactDatabase problem

    I want to provide the user with the possibility to compact an Access97 Database from the application. Now I am stuck with the following problem: When I run the following code error -2147467259 is generated: 'Couldn't open database. Either the database isn't recognized by the application or it is...
  18. hansu

    DataCombo SelectedItem

    I'm facing the following problem: To check whether the user selected an item in a DataCombo I check the SelectedItem property of the datacombo. If it returns NULL no item is selected. The code is like: If Me.DataCombo1.SelectedItem = NULL then MsgBox &quot;Text ....&quot; End if The strange...
  19. hansu

    Carriage returns in DataGrid column

    Can anyone advise with the following problem: In my application one column in a DataGrid contains text with carriage returns. (from an Access table) The carriage returns must be kept since they are used for printing the data. The only thing I'd like to avoid is that they are displayed in the...
  20. hansu

    DrawText

    I loop through a recordset to print it's contents. One field contains multipleline text. To print that field I use the API-function DrawText. I need to set the rec.bottom property dynamically to get the right size of the RECT depending on the size of the text in the field. So far I have not...

Part and Inventory Search

Back
Top