Recent content by sirantonycartwr

  1. S

    VBA Range Problem!

    Ahhh, upon taking a second look, I see what I did wrong, for some reason I was passing it two arguments instead of concatenating the row and col into one argument! Thanks again!
  2. S

    VBA Range Problem!

    Omg, something so stupid! Thanks so much! I appreciate that! I'd spent about an hour continually going through the code trying to find out what I'd done. I figured that since the argument was a string that it would naturally want a string passed to it!
  3. S

    VBA Range Problem!

    Hi Guys, Hope you are ok! I'm getting this error: "Application-Defined or Object-Defined error". On this line: "Set rng1 = .Range("A", CStr(i))". I don't know what the hell it is talking about! It all looks fine to me and this is driving me mad! The code should simply iterate through all...
  4. S

    How can I display a date and time next to eachother in an expression?

    I want this expression to form a value of a field on a query... I know that what I want is something like this: arrangedActivityName: [activityDate]+", "+[activityTime]+", "+[activityId]+", "+[venueName] When I do it though, its shows "#Error" in the field. I'm guessing that its something to...
  5. S

    How can i make access allocate random records?

    Hiya, Im going to make a database which has a table of different talks (or presentations) and a table of staff. One staff can have many talks. One talk can only have one staff. When I press a button on the form, I want Access to allocate the talks randomly to the staff. So, for example, lets...
  6. S

    Does anyone know what this code is about?

    So this code is for a button called command12 which opens a form with specific data to display? Ant...
  7. S

    Does anyone know what this code is about?

    Yeah, thats what i thought too. I dont have a button for it, and as far as i know i havent had a button for this. Is it deffinately code for a button? It does say command click which is for a button. If the button is never clicked because its not there then this method is never going to be...
  8. S

    Does anyone know what this code is about?

    This code has been put into my database a few times, i dont know what it is. It never seems to be called, ever. I commented it out and put a messagebox there to tell me when its called. My buttons are always called btnDoThis, etc not command 12. I dont know why its in there but obviously it...
  9. S

    Im trying to change a combo box's row source on focus. Dont know why it wont work!

    if anyone is struggling with this, your code should be similar to this: Private Sub SubscriptionType_GotFocus() If Me.Parent.StakeholderType = "member (corp)" Or Me.Parent.StakeholderType = "customer (corp)" Or Me.Parent.StakeholderType = "external agency (corp)" Then...
  10. S

    Im trying to change a combo box's row source on focus. Dont know why it wont work!

    ok, ive sorted it out, Access put incorrect SQL code in the vba code!!!! Ant...
  11. S

    How to make a query not show repeats

    Oooo, I didnt know that. I can think of lots of uses for that facility. Thanks for sparing your time to help guys.
  12. S

    A Simple Peice Of Code Wont Work, Please Tell Me Why.

    ha ha, youde be right to think that too! i typed: If Forms!frmRoomYearTariffs.tab.Pages("Rooms").Visible Then instead of: If Forms!frmRoomYearTariffs.tabs.Pages("Rooms").Visible Then Thanks, Ant...
  13. S

    A Simple Peice Of Code Wont Work, Please Tell Me Why.

    i know, you must think im a complete moron!
  14. S

    A Simple Peice Of Code Wont Work, Please Tell Me Why.

    no. still doesnt work, its saying that this line is incorrect: If Forms!frmRoomYearTariffs!Rooms.IsVisible Then Ant...
Back
Top Bottom