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

  1. abrewis

    Close popup and refresh main form.

    Hi, the main page doesn't trigger a postback when the pospup is closed. The only postback is triggered when the popup is loaded. Or am I closing the popup incorrectly? This is my code to close the popup: Dim strScript As String = "<script>window.opener.document.forms(0)." + control.Value +...
  2. abrewis

    Close popup and refresh main form.

    I have an application with a datagrid with 'Add' buttons on each row. When the user clicks the add button a popup form listing suppliers is displayed. Once a user has selected the supplier details are sent to the database. I then want the popup to close and the main form to refresh so that the...
  3. abrewis

    Extracting Maximum Call History

    Both work a treat, thank you very much. Alasdair
  4. abrewis

    Extracting Maximum Call History

    I have a view which produces three columns of data Call_Number History Current_Group 1 1 5 1 2 8 1 3 6 2 1 6 2 2 6 3 1 8 3...
  5. abrewis

    Remove UserName and Password History

    Have you tried autocomplete="off" within the form tags? For example: <form id="Form1" method="post" autocomplete="off" runat="server"> Alasdair
  6. abrewis

    Trigger - Search and Update Problem

    There are probably no more that 15 date fields, I shouldn't think it'll effect performance too much. Many thanks for you help. Alasdair
  7. abrewis

    Trigger - Search and Update Problem

    Thanks for your response DrSQL, am I right in thinking my trigger will have to do a check on each date field in the table like below? I guess there is no other more efficient way of doing this? CREATE trigger Update_DATE_i on DATE for insert as update tablename set date1 =Null where...
  8. abrewis

    Trigger - Search and Update Problem

    I have a large table that has many datetime fields. These fields have been entered as 01/01/1900 as default rather than as nulls. I would like to write an update trigger for when the record is updated, to update each of the date fields to be a null should the date be 01/01/1900, otherwise...
  9. abrewis

    Help with ascx properties

    As easy as that...... Many thanks ca8msm
  10. abrewis

    Help with ascx properties

    I am new to ASP.NET and am building an application with several UserControls. My problems lies when I try and set/return values from the ascx to an aspx page, I get the error: System.NullReferenceException: Object reference not set to an instance of an object An example of my code to set the...
  11. abrewis

    login

    Firstly, I apologise for adding on the end of a post however I too am attempting to write login code to our domain. The only difference is my company doesn't use LDAP. Does anyone know of any samples/resources about the WinNT:// provider? Any help would be appreciated. Alasdair
  12. abrewis

    List Box problems

    Better late than never! '### To add Dim intX As Integer Dim strCode As String Dim strName As String For intX = 0 To lstListbox.Items.Count - 1 If lstPractices.Items(intX).Selected Then '### Copy into Selected box strCode = lstListbox.Items(intX).Value strName =...
  13. abrewis

    Getting day from a date

    Try using this function: Public Function GetDay(dteDate As Date) As String Dim intDay As Integer intDay = Weekday(dteDate) Select Case intDay Case 1 GetDay = &quot;Sunday&quot; Case 2 GetDay = &quot;Monday&quot; Case 3 GetDay = &quot;Tuesday&quot; Case...
  14. abrewis

    UDT's v Variables

    I wonder if anyone could let me know what are the main advantages / disadvantages of creating a UDT, for example: Private Type myPerson strName As String intAge As Integer lngHeight As Long lngWeight As Long End Type over declaring these variables separately as below: Dim...
  15. abrewis

    Semi-Validate Email

    Try this : Private Sub Command1_Click If txtEmail.text <> &quot;&quot; then if VaildEmail(txtEmail) = True then msgbox &quot;Valid Email&quot; Else msgbox &quot;Email is invalid&quot; End if End if End Sub
  16. abrewis

    Semi-Validate Email

    Vec, here is a function I use to validate email addresses. Public Function VaildEmail(txtText As TextBox) As Boolean Dim intX As Integer '### Count Integer Dim intY As Integer '### @ Character Dim intZ As Integer '### . Character Dim intW As Integer '### Count of @ Character...
  17. abrewis

    ListBox Remove Item

    Thanks strongm, you learn something new everyday!
  18. abrewis

    ListBox Remove Item

    Very true, I'm afraid I put this code together rather too quickly this morning and therefore they I cannot guarantee that it's totally 'bug free'. However this problem can be solved by changing the forth line to For intY = intX To List1.ListCount - 1 Cheers
  19. abrewis

    ListBox Remove Item

    Try this, it works OK from here: Dim intX As Integer Dim intY As Integer For intX = 0 To List1.ListCount For intY = intX + 1 To List1.ListCount - 1 If StrComp(List1.List(intX), List1.List(intY), vbTextCompare) = 0 Then List1.RemoveItem (intY) End If Next...
  20. abrewis

    ListBox Remove Item

    That'll be because you need to add your code to remove the duplicate entry or call a sub procedure to do this at the '### Remove Duplicate' point. Good luck

Part and Inventory Search

Back
Top