Search results

  1. T

    Delete Record

    The form is opened via a button containing: Private Sub cmdAdd_Click() Dim strLinkCriteria As String strLinkCriteria = Me.txtDept DoCmd.OpenForm "frmAddNew", , , , , acDialog, OpenArgs:=strLinkCriteria End Sub This opens my pop up form which has Rich's validate data function in the...
  2. T

    Delete Record

    I inserted DoCmd.GoToRecord acDataForm,"frmName", acFirst right behind accmdDeleteRecord. It's not a perfect solution but I'm wondering if any problem might occur? Today is a day when I need more than the usual cups of coffee...
  3. T

    Delete Record

    Pardon me because I do not understand.. The form is a popup which I opened as a dialog window. Would setting focus outside still work? The form's recordsource is a table so how would a query come into place? I'll try the bookmark on preceeding record and see if it works. Thanks for the quick...
  4. T

    Delete Record

    Hi all, facing a little problem with my forms. Access gives me headaches everyday. Haha. In a continuous form, I have a delete button with the following code Private Sub cmdDelete_Click() On Error GoTo Err_cmdDelete_Click DoCmd.SetWarnings False If MsgBox("Confirm deletion of the...
  5. T

    Recordsource of subform

    Hey..didn't know tab on change could be used. Seems noticeably faster but I need to test it over the network. Had tried using gotfocus, lostfocus, blah blah... That would solve the problem of the refresh too, I think. :) Thanks a lot!
  6. T

    Recordsource of subform

    Refresh There is also an issue of refreshing the data automatically if changes are made..I have to click on another tab and return to the page where changes were made to see the refreshed changes...Been bugging me for quite some time..
  7. T

    Recordsource of subform

    Hi everybody, I have a form with its tabbed subforms' recordsource determined by the code: Private Sub childTvl_Enter() Me.childTvl.Form.RecordSource = "SELECT * FROM tblTvlInput WHERE tblTvlInput.Dept = """ & Forms.frmBudget.txtDept & """" End Sub This is to filter the huge data by...
  8. T

    Promotions and Addition

    Okay..figured out how to use flag field for adding new staff(without relying on another table) but I'm still trying to figure out a way for reclassification of staff. Because I need to be able show the user which month the changes has taken place and also to calculate total headcount for that...
  9. T

    Promotions and Addition

    May I know what is a flag shield and how do I implement it? Still new to access and learning much here! Tables are used so that I can use the data collected to calculate the eventual increase in salary due to the new staff or promotions. But if I can do it simply with a flag shield (whatever...
  10. T

    Promotions and Addition

    Hi all, I have a table with the number of existing staff per department separated by their corporate level. I am able to use a query to display the number of staff per month(Mth1=ExistingStaff..so on). Since there will be staff changes such as promotions or new staff additions, I need to cater...
  11. T

    Refreshing OpenArgs?

    That worked great! =) Thanks uncle gizmo!
  12. T

    Refreshing OpenArgs?

    there's no way that i can circumnavigate this? i've tried using macros to set values and it doesn't involve closing the active popup window. but i don't think that's the best way right?
  13. T

    Refreshing OpenArgs?

    Hi all, I have a form (sub_Main) that opens and has an openargs value (Department) from my main form when user clicks on a cmd button. However, if I were to go back to my main form and click on another department the openargs value is not passed along. I have tried using Me.Refresh under...
  14. T

    Querying tabbed subforms

    another note I am currently using a query with a criteria based on a textbox which gets its value from user's input on which department he is from. I'm trying to cut down the number of queries used...So a dynamic flter would be best, I think. Any suggestions would be fine!
  15. T

    Querying tabbed subforms

    Hi all, I have a main form with tabbed subforms(all based on different tables) where I want to display only the records the specific viewer is able to see. I know that I need to change the record source for the subforms based on the criteria of filter I want but somehow I'm lost in the syntax...
  16. T

    comparing values

    Hi all, trying to speed things up in the office but having a headache from this problem. Fairly new to access but learning more each day! We have two forms of information from our vendors containing ticket numbers and cost per ticket. Because of the difference in the format,it has to be...
  17. T

    Refresh Content

    Hi All, I have a sub form nestled in tabbed form which draws its contents from a query with a search criteria based on user input on another form. I find it funny that when I enter Me.Refresh into the child's on Enter event, it will only refresh the contents(sub form) if the user clicks on a...
  18. T

    query information from a matrix

    Wow,thanks for the help! I'll try to get this to work with what Iwant. Thanks!
  19. T

    query information from a matrix

    Hi All, I'm new to access and I've a problem that has been hounding me. Right now, I am utilising a table containing the cost of air fare from one country to the next. It looks something like this: Origin Destination AirRateBiz AirRateEcon USA Japan 1200 800 Japan USA...
Back
Top Bottom