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 TouchToneTommy 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: 696796
  • Content: Threads
  • Order by date
  1. 696796

    Send query to mail merge doc

    Hi experts, Any ideas how i can send a query through so that it powers a mail merge document in ms word? Any help much apreciated guys and gals, Al
  2. 696796

    Mail merge, change parameters query stored in access

    Hi experts, i have set up a mail merge in ms word, and have linked it to a query in my access 97 database. Now i want to be able to change a parameter in the query, i.e. CarNo(a number which is unique to each record). How is it best to send this to the query/word document - at the moment it...
  3. 696796

    Mail merge - change parameter in query

    Hi experts, i have set up a mail merge in ms word, and have linked it to a query in my access 97 database. Now i want to be able to change a parameter in the query, i.e. CarNo(a number which is unique to each record). How is it best to send this to the query/word document - at the moment it...
  4. 696796

    Creating a multiple select statement

    Hi, At the moment i have 13 seperate statements selecting a count of records depending on the criteria dates. A few are shown below:- SELECT count(impactID) as period1 FROM tblBaseData WHERE iyear = 2005 AND iperiod = 9 AND impactId = 1 SELECT count(impactID) as period1 FROM tblBaseData...
  5. 696796

    date format

    Hi, VB makes my dates from my datetimepicker into the format mm/dd/yyyy instead of dd/mm/yyyy like i want. Heres how i put the value into a variable to use:- Dim dtResponseReceivedTo As Date = dtpTo.Value.Date I need dd/mm/yyyy, this is how its stored in my access97 database - am usingvis...
  6. 696796

    Sort a datagrid column

    hi i have a datagrid all set up, i just need to know how to sort on one of the columns, for example supplierName... I've put my code below to show you how i have it set up. Cheers, al dtAudits = ds.Tables("audits") ' present data With dgAudits...
  7. 696796

    datetimepicker - setting time

    Hi, I am using a dateTimePicker to select dates so that they can be used in criteria for a query. The problem i'm having is that when i select a date, the current time comes with it, so when searching on the database if a record has say inserted with a date of 01/01/2006 12:04:33, i may search...
  8. 696796

    @identity to get last entered id from another table

    Can i do this sql statement? sql2 = "INSERT INTO tblmaterialSupplier (materialId, SupplierID) values (SELECT @identity FROM tblmaterials, '" & intSuppId & "')" I can't get this sql to work - i need to get the last enetered materialId from my materials table... Alex
  9. 696796

    dataset scroll through records and bind to textbox's on form

    Hi i have created a dataset of users as shown below:- Public Sub createDataset() Dim ds As New DataSet("Users") Dim strConn, strSQL As String strConn = carDba.getCn strSQL = "SELECT UserId, LoginName, LoginPassword, userLevelId, fullName " & _...
  10. 696796

    move through dataset and assign to form

    Hi, i am filling a dataset with the contents of a table based on an sql query (see below) If you can imagine, i have textboxes on the form, which i want to bind to the results inside the dataset. ie, the second column in tblCar is carNo, so i want the carNo to be displayed in txtCarNo. This...
  11. 696796

    Ad-hoc query built by user

    Hello all, This is a toughy, for me anyway... I am using an access97 database, with visual studio 2003.. I am creating a 'search' form so that a user can search through a set of records. Now, i will have controls on the form so that they can select the criteria for the query. These controls...
  12. 696796

    me.close closes whole app, not the form

    Public Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim sql = "SELECT UserID, fullname, userLevel FROM tblUser WHERE LoginName='" & txtUserName.Text & "' AND LoginPassword='" & txtPassword.Text & "'" Dim conn As...
  13. 696796

    calculate no if days from 2 dates

    Public Sub calculateDays() ' Calendar Days Dim dtpDateCarSent As New DateTime Dim dtpDateClosed As New DateTime Dim dys As Integer = dtpDateClosed.Date.Subtract(dtpDateCarSent.Date).Days End Sub Hi, im trying to use the above code but it isnt working... I...
  14. 696796

    mdi form wont open in mdi parent

    hi, i am trying to develop an mdi style system so that one parent form holds all child forms. I think i have set up the mdi form correctly, but i cant get some forms to open inside the mdi. for instance i have a main menu form that does open in the mdi, which has buttons on it which i want...
  15. 696796

    ErrorProvider component

    I am using this componenet to flag blank textboxes etc in my system - Now i think my code is correct,and i have added the conmponent to the form, it catches the error fine. My problem is that i cannot get the icon to disappear once it is displayed (when i go and fill the txtCarNo and press...
  16. 696796

    Form Validation

    Hi, I need to validate my form so that when a user tries to insert a record, certain fields must be completed. If a field isn't filled, i need the label next to it to be highlighted red. I think i'm nearly there but it isnt working quite how i'd like. At the mo, it does the first if, then...
  17. 696796

    Passing through userId from login

    Hi, ihave a simple login page. This works fine, but what i need to do is store the userID that is being selected in the Stored Procedure so that i can use it throughout the rest if the system. Public Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  18. 696796

    Basic Combo box functionality

    Hi all, New to vb.net and the use of datasets... I know this topic has been covered numerous times, but every Q doesn't start from the begining. I simply have a form with a combobox on (cboSupplier) I want to fill it with supplier name from my Access table (tblSupplier) taking the supplierID...
  19. 696796

    How to update my joining table on insert of table

    HI, I am writing a stock management database for my dissertation. I have 3 table - Part, Parts_Supplied and Supplier... When i insert a part, i need to also insert a record into Parts_supplied which contains only the part_id and supplier_id. Do i use an oracle insert trigger when the part...
  20. 696796

    Input/Output in stored procedure

    Hi, i have the following sp in which i am passing in two values (i_username, i_password) and want i_role_id to come out. The problem i'm having is that i cant get the role id into i_role_id. The error msg i'm getting is :- PL/SQL: SQL Statement ignored PL/SQL: ORA-00933: SQL command not...

Part and Inventory Search

Back
Top