Recent content by vartaxe

  1. V

    access 2010 vba help

    Private Sub Numéro_du_projet_Click() If Len(Me.Numéro_du_projet & "") < 1 Then If Me.Localité.Column(2) = "" Or Me.Type.Column(2) = "" Then MsgBox "Veuillez renseigner la localité et le type de projet." Exit Sub End If tSeq = Nz(DMax("Séquence", "Projets"...
  2. V

    access 2010 vba help

    can't get it to work :/ Private Sub Numéro_du_projet_Click() If Len(Me.Numéro_du_projet & "") < 1 Then ElseIf Me.Localité.Column(2) = "" Or Me.Type.Column(2) = "" Then MsgBox "Veuillez renseigner la localité et le type de projet." Else tSeq = Nz(DMax("Séquence", "Projets", "Localité=" &...
  3. V

    access 2010 vba help

    here is a sample db if it helps
  4. V

    access 2010 vba help

    no it doesn't because every project number has 001 number im missing something
  5. V

    access 2010 vba help

    this is what i have so far Private Sub Numéro_du_projet_Click() If Me.Localité.Column(2) = "" Or Me.Type.Column(2) = "" Then Me.Numéro_du_projet = "" Else Compteur = Nz(DMax("Séquence", "Projets", "Localité=" & Me.Localité & " and " & "Type=" & Me.Type), 0) + 1 Me.Numéro_du_projet =...
  6. V

    access 2010 vba help

    oh sorry doesn't work very well because it keeps making 001 something missing :/
  7. V

    access 2010 vba help

    yeah got it
  8. V

    access 2010 vba help

    thanks for helping i came up with this but doesn't work... keep getting error 2471
  9. V

    access 2010 vba help

    understanding this isn't very easy because english is not my mother tong language hxxp://xxx.techonthenet.com/access/functions/domain/dmax.php (dmax) hxxp://allenbrowne.com/func-09.html (dmax) hxxp://xxx.utteraccess.com/wiki/index.php/Sequential_Numbering (dmax)...
  10. V

    access 2010 vba help

    ok thats promising :) so can you help me with the full vba code for this to work actually my projects table already have those fields except for SequenceNo hxxp://i.imgur.com/lt5SkqS.png?1 so i can add SequenceNo that's no problem but will i need to input data in sequenceno? because after...
  11. V

    access 2010 vba help

    well there are 3 main tables "Projects" "Locations" "Types" the projects one is "clean" its mainly for input through the form which has one column for projectid called "Project_Number" then there is a cell linked to "locations" and another linked to "types" locations has "location" "type_a"...
  12. V

    access 2010 vba help

    im not sure how to proceed... ive seen people use sql in access vba or even dlookup function but dunno how to use it. :/ ps: and i don't think excel macros are the way to go
  13. V

    access 2010 vba help

    i added types columns in towns all of which have 0 in it TOWN A B F L M R SPAIN 0 2 5 0 3 0 if the new project is in SPAIN and type B is selected it should check that the latest one was SPAIN-B-2 so +1 the new one will be called SPAIN-B-3
  14. V

    access 2010 vba help

    towns SELECT [Localités].[N°], [Localités].[Français], [Localités].[Abréviation], [Localités].[Commune], [Localités].[Réseau], [Localités].[A], [Localités].[B], [Localités].[F], [Localités].[L], [Localités].[M], [Localités].[R] FROM Localités ORDER BY [Français]; types SELECT [Types].[N°]...
  15. V

    access 2010 vba help

    ME.TOWN actually points to towns table and me.type to types table but i added types columns to the towns table all have 0 in it
Back
Top Bottom