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!

Search results for query: *

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

    multiple line output in function

    Hi, I have created a function to do a database call: function calldb { OUTPUT=`some DB command` echo "OUTPUT =$OUTPUT" } But if I use the function the output is one line: Output = -------- IQ_SYSTEM_MAIN MAIN T T 21 1000M 0B 1 1 T 1K 1H,25568F,32D,128M N IQ_SYSTEM_TEMP TEMPORARY T T...
  2. fiep

    use collumn value in dateadd function

    Hi, I have a collumn that contains the first parameter for the dateadd function. (i.e. WEEK, MONTH, etc) I want to use this value in the where statement of a query but get the following error: ' + cast(T.AddString as varchar ) + ' is not a recognized dateadd option. Or Invalid parameter 1...
  3. fiep

    link to SQL view and list fieldnames: error 3420

    Hi, I have linked my access front-end to an SQL server. Now I have linked to a view and want to list all field names in the view. I use this code: Set tblView = CurrentDb.TableDefs(strView) For Each fldName In tblView.Fields <-- gives error 3420 Me.kzlFieldNames.AddItem fldName.Name Next...
  4. fiep

    Find user roles

    Hi, I have an application that uses SQL to store the information. The authentication on the server is Windows Authentication and the users are all part of one or more Windows Groups. The Windows group is mapped to database roles in the database. So it looks like this: User is member of Windows...
  5. fiep

    select user database roles using SP

    Hi, Is there a stored procedure that retrieves all the database roles for the active user? I know how to retrieve all roles and the names of the members. But I want to list all database roles for a given user. thanks in advance.
  6. fiep

    Menu item firing 3 times

    Hi, I have created a custom menu button to print reports on a form. If I click the (custom) menu item the function connected to the button is executed 3 times (and the report is printed 3 times). Of course it only has to run once. Am I doing something wrong of is it not possible to use custom...
  7. fiep

    pick color and use in excel

    Hi, I have a color picker for the user to select several colors for several types of data. (Which data is not interesting). I get the color codes using the standard color picker. But when using the color code in a macro that exports data to excel: .ActiveCell.Interior.ColorIndex = <code picked>...
  8. fiep

    All user difened fields in Word document

    Hi, I am trying to fill a list with all user defined fields in a word document. If I loop through the activedocument.fields I only see the fields that have been added in the document text. I also want to list all fields that have been created in File --> properties --> custom and that have not...
  9. fiep

    String functions do not work in Excel

    Hi, I am trying to use string functions in excel like: trim(activecell.value) or replace(activecell.value, " ","") But these functions always return the same strings as the values in the activecell. So the spaces are not removed from the strings. It looks like none of the string functions work...
  10. fiep

    Focus on Tabcontrol

    Hi, How do I find what tabcontrol on my form has focus? Two tabs: tabPackage and TabShipment If TabPackage has the focus a combox will have to show packages. Ig the TabShipment has the focus the combobox needs to show Shipments. Can this be done? Thanks. W.
  11. fiep

    Subreport link not working

    Hi, I have a reports where the boxids in the following format: SHP_090604_14:42:30 In the subreport I want to show all articles in the box and the are identified with the same boxid: SHP_090604_14:42:30 I have linked the parent and child reports with the boxid column. However when I open the...
  12. fiep

    Insert into problem

    Hi, I hope somebody can help me with my insert problem. I have this table called tbl_currency and one of the fields is called currency (not to smart I know). I want to add a new currency by executing an insert statement: INSERT INTO tbl_currency (currency) values ('" & var$ & "');" This...
  13. fiep

    Roundig question

    I have trouble with calculating some percentages. This is the code: all variables are declared as single sngPerTotal = sngTotalOrdered \ (sngTotal \ 100) sngTransCost = (sngTranport\100) * sngPerTotal The problem is that it sngTransport = 150 I still get a value of 1. So it looks like Access...
  14. fiep

    Select record on datasheet

    Hi, I have this datasheet view on a form. The user doubleclicks on the form and a pop-up form shows the details of the selected record. After closing the pop-up I requery the datasheet so the changed details are visible. So far no problem BUT requiring places the focus on the first record in...
  15. fiep

    Object no longer valid

    If I execute the code underneath I always get a object no longer valid error. Can anybody tell me why? The variables are declared so that can not be the problem. I do not have a clue as to why it does not work. If I copy the query string into a query it runs without any problem so the syntax of...

Part and Inventory Search

Back
Top