Search results

  1. antonyx

    open form, link criteria, filter, cant set default value to a control.. why?

    Private Sub btncard_Click() Dim stLinkCriteria As String DoCmd.RunCommand acCmdSaveRecord stLinkCriteria = "[jobref]=" & "'" & Me![jobref] & "'" DoCmd.Close DoCmd.OpenForm "k_job_card", , , stLinkCriteria End Sub this button code opens the k_job_card form. the form opens and says 'Record 1 of...
  2. antonyx

    transfer value before form closes

    sending the id using linkcriteria i dont need it to be saved in the individual module.. it seems to be sending it across ok.. correct me if im wrong
  3. antonyx

    transfer value before form closes

    also if i make sure the lock is set to edited record on both forms.. would it be possible to open them both at the same time.. even though they will both be refering to the same record?
  4. antonyx

    transfer value before form closes

    yes i still can and it works i think
  5. antonyx

    transfer value before form closes

    if i do this then would i need to refer to the 'sendref' variable in the separate module?
  6. antonyx

    transfer value before form closes

    one last thing.. in job1.. at the moment it is telling me that i cant create a record because it will create a duplicate value in the primary key.. these two forms populate a single record in a single table.. at the moment im using this.. DoCmd.GoToRecord , , acNewRec in job form to create...
  7. antonyx

    transfer value before form closes

    thank you sir..
  8. antonyx

    transfer value before form closes

    still the same prob.. its here in 2003 and 97 format.. have a look
  9. antonyx

    transfer value before form closes

    ok.. it says error 3008 its trying to open the job1 form but the job form is still open.. this is wat i have at the moment.. Form Module Option Compare Database Public sendref As String job form Option Compare Database Private Sub Command6_Click() DoCmd.RunCommand acCmdSaveRecord...
  10. antonyx

    transfer value before form closes

    ahh ok.. so if i use that.. can i just use 'sendref' anywhere i want in my database.. and it will be that value.. what about setting that value.. Modules!ref.sendref.value = me.txtjobref.value and reading it.. Me.txtjobref = Format(Modules!ref.sendref, "00000000") are these correct because...
  11. antonyx

    transfer value before form closes

    ok.. i doubt it is as simple as this.. but i reckon its nearly this simple.. ive saved a module as 'ref' with this code Option Compare Database Dim sendref As String and then.. Private Sub Form_BeforeUpdate(Cancel As Integer) DoCmd.RunCommand acCmdSaveRecord Modules!ref.sendref.value =...
  12. antonyx

    transfer value before form closes

    i want to send an id from 'job' to 'job1'. the job form needs to be closed before the job1 form opens.. i want to do something like this.. job form Private Sub Form_BeforeUpdate(Cancel As Integer) DoCmd.RunCommand acCmdSaveRecord DoCmd.Close DoCmd.OpenForm "job1" End Sub and then on job1...
  13. antonyx

    search and retrieve problem

    right let me spend 3 hours trying to fix this..see if i can sort it
  14. antonyx

    search and retrieve problem

    a form should open when a record in a listbox is double clicked.. the form doesnt open.. and when i open it independantly i am unable to edit any of the fields. the form is based on a multi table query. if anyone can suggest why it doesnt work i would be most grateful. 2003 version on my...
  15. antonyx

    basic else if problem

    yeah i have the habit of asking before trying.. plus i was only working on it for an hour or two today so i tried gettin a quicker answer.. i wont continue this habit
  16. antonyx

    refernece number missing digit during form transfer

    ring ding ding ding ding yeeehaaa
  17. antonyx

    refernece number missing digit during form transfer

    mate.. you know i completely understand.. the creator of the forum rests happilly in his grave... whenever you can give me any help its fine.. thanks for the reply
  18. antonyx

    refernece number missing digit during form transfer

    still nothing bob?
  19. antonyx

    basic else if problem

    so are you telling me that this code will work?? Private Sub idfound_AfterUpdate() Dim newid newid = idfound.Value If KeyCode = 9 And IsNull(idfound) Then Me.cboname.SetFocus Exit Sub If CurrentProject.AllForms("job_cash_single").IsLoaded Then Forms!job_cash_single!qpax.Value =...
  20. antonyx

    refernece number missing digit during form transfer

    thanks.. im sure its not a huge problem.. i just cant seem to get it working..if anyone else could download the sample database and give it a go i would be most grateful.
Back
Top Bottom