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

  • Users: PWise
  • Order by date
  1. PWise

    Listbox with Multiple columns

    Try If Me.ListBox1.ListIndex >= 0 Then Me.ListBox2.AddItem Me.ListBox1.Column(0) & ";" & Me.ListBox1.Column(1) End If
  2. PWise

    Need help on simple stored proc calling

    Where do you define conn
  3. PWise

    Open two recordsets and populate field in one table based on criteria from another

    You don't need records sets you can use a update Statement UPDATE [Item Table] As I INNER JOIN [Case Code Table] As C ON (CUBE Between cube_low AND cube_high ) AND (Weight Between weight_low AND weight_high ) SET Code = Type DIM STR As String Str = "UPDATE [Item Table] As I INNER JOIN [Case...
  4. PWise

    Add values within IN clause to table

    TRY DECLARE @Start int DECLARE @End int SELECT @Start =1, @End = 5000; -- recursive CTE WITH Alll (num) AS ( SELECT 1 UNION ALL SELECT num+1 FROM Alll WHERE num < @End ) insert into yourtable(yourfield) select * from Alll option (maxrecursion 0) select *...
  5. PWise

    Create a Row of Data on Non Business Day

    you will need a table with date and left join this table to SOMETABLE Select AVERAGE(CURRENTACCOUNT), SUM(CURRENTACCOUNT), DateField As EXTRACTDATE From DatesTable DT left join SOMETABLE St on st.DateField=st.EXTRACTDATE WHERE st.DateField >= '01-APR-2016'
  6. PWise

    Record date that a record is modified.

    Docmd.RunSQL "UPDATE tblInstruments SET tblInstruments.ModDate =" & NOW() & ";"
  7. PWise

    Part of the code that I want to exe

    TRY docmd.GoToRecord acDataForm,me.name,acFirst
  8. PWise

    Have Excel Tell Me Active Cell Details

    better Dim r As Range Set r = ActiveCell 'note use of Set keyword as assigning an Object ref! MsgBox Replace(r.Address, "$", "")
  9. PWise

    Have Excel Tell Me Active Cell Details

    try Dim r As Range Set r = ActiveCell 'note use of Set keyword as assigning an Object ref! MsgBox r.Column & Chr(r.Row + 64)'this will work till column z
  10. PWise

    Hiding Controls on Report

    wouldn't this shorten even more Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) Dim ctl As Control For Each ctl In Me.Controls 'If ctl.Tag = "Visible" Then 'debug.print ctl.name ctl.Visible = (Len(Me!txtXLst & "") and ctl.Tag = "Visible") 'End If...
  11. PWise

    VBA Check if table exists

    for starters if not isnull(dlookup("Name" ,"MSysObjects","type in(1,6) and Name='Tablename'" )) then msgbox "Table Exist"
  12. PWise

    USA

    johnherman : see Term limits in the United States
  13. PWise

    Find match on first 3 positions of a field

    try Select * From TableName Where IsNumeric (Mid(SerialNo, 1, 1) ) = 0 and IsNumeric (Mid(SerialNo, 2, 1) ) = 0 and IsNumeric (Mid(SerialNo, 3, 1) ) = 0
  14. PWise

    correct syntax for setting up a SQL string for CurrentDb.Execute

    i dont know you want to delete try strSql = "Delete * FROM SameOrd_tbl WHERE (((SameOrd_tbl.License_PartNo)=''))" or strSql = "Delete * FROM SameOrd_tbl WHERE (((SameOrd_tbl.License_PartNo)=' '))" do you know what the difference between 1)null 2)empty string 3)space is?
  15. PWise

    Calculating a sum whem some of the data is negative

    I dont think that the negative numbers should be a problem. you dont need to know the lable name or caption but the text box name and use this on the main form =sum(forms!formname!subfromControlName!Textboxname)
  16. PWise

    Error 3061 and AutoNumber field.

    what is the sql of the query
  17. PWise

    Set the value of a checkbox on a sub-form.

    is the ShipPartialCheckbox bound or unbound
  18. PWise

    Filter Or Populate List Box According to Two Date Fields

    i dont know what fields you want to display burt your rowsource should be something like Select field1,field2,... from tablename where EntryDate = date() union Select field1,field2,... from tablename where RequestedDate = date()
  19. PWise

    Data from two tables comparison

    Andy: Does the MINUS keyword work in JET SQL ?

Part and Inventory Search

Back
Top