• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forumsVisit Corsair.com

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development

    Software and web development Databases, graphics, programming, scripting and web development.

    Reply
     
    LinkBack Thread Tools
    Old 10-11-2003, 05:21 PM   #1 (permalink)
    dead pixel
     
    streetster's Avatar
     
    Join Date: Jul 2003
    Location: Petersfield
    Posts: 3,728
    Thanks: 44
    Thanked 57 Times in 44 Posts
    streetster's system
    quick access/vb problem...

    well maybe quick.

    basically, i have a form :



    and i need those little '>' and '<' to move the individual records back and forward (they arent directly related tables)...

    basically, if i use the little navigation thing access puts on their by default, the bottom (teacher) records move, but this isnt useful.

    i've looked at the code and its :

    DoCmd.GoToRecord , , acNext

    which is nice. but i want 3 individual ones to move each record (subject / teacher / room) individually.. and i seem to be getting nowhere. i looked on google, but it gives lots of examples of the "DoCmd.GoToRecord , , acNext" command, but not for what i want to do...

    can anyone please help ?



    mark

    edit : corrected [img] tags

    scan.co.uk firefox plugin:


    msn
    | rating | web

    Last edited by streetster; 10-11-2003 at 05:32 PM..
    streetster is online now   Reply With Quote
    Old 10-11-2003, 06:56 PM   #2 (permalink)
    The stug
     
    Shad's Avatar
     
    Join Date: Jul 2003
    Location: In front
    Posts: 2,534
    Thanks: 9
    Thanked 11 Times in 9 Posts
    If you're using ADO...

    objRecordSet.MoveNext and similarly objRecordSet.MovePrevious will increment and decrement a record set between records.

    My name is Simon

    Shad is offline   Reply With Quote
    Old 10-11-2003, 07:52 PM   #3 (permalink)
    dead pixel
     
    streetster's Avatar
     
    Join Date: Jul 2003
    Location: Petersfield
    Posts: 3,728
    Thanks: 44
    Thanked 57 Times in 44 Posts
    streetster's system
    ADO? i am using Microshaft Access XP... the command to move forward and back is DoCmd.GoToRecord , , acNext (or acBack), i know that much. but i need to apply it to a specific field...

    mark

    scan.co.uk firefox plugin:


    msn
    | rating | web
    streetster is online now   Reply With Quote
    Old 10-11-2003, 08:09 PM   #4 (permalink)
    The stug
     
    Shad's Avatar
     
    Join Date: Jul 2003
    Location: In front
    Posts: 2,534
    Thanks: 9
    Thanked 11 Times in 9 Posts
    Read up on ADO (ActiveX Data Objects). I suspect it is what Access has given you to use anyway (i.e. that's what it's using in the existing code).

    My name is Simon

    Shad is offline   Reply With Quote
    Old 10-11-2003, 09:16 PM   #5 (permalink)
    dead pixel
     
    streetster's Avatar
     
    Join Date: Jul 2003
    Location: Petersfield
    Posts: 3,728
    Thanks: 44
    Thanked 57 Times in 44 Posts
    streetster's system
    i dont want to go into ADO stuff, as i'm sure it should be possible with just plain VB (no need to over complicate the situation)..

    so far i have got this bit of code :

    DoCmd.GoToControl "room_no"
    DoCmd.GoToRecord acDataForm, "Room_No", acNext
    which tells me that "the object 'Room_No' isn't open"

    or

    DoCmd.GoToControl "room_no"
    DoCmd.GoToRecord acDataForm, Room_No, acNext
    which tells me 'The object 'M1' is not open..

    how the hell do i 'open' either object so this stupid thing will work?

    the 'gotocontrol' bit moves the cursor into the correct field, however thats as far as i get.. i'm really annoyed with stupid access now, as its really not a hard thing, but i cant do it

    mark

    scan.co.uk firefox plugin:


    msn
    | rating | web
    streetster is online now   Reply With Quote
    Old 11-11-2003, 08:54 AM   #6 (permalink)
    Member
     
    Join Date: Aug 2003
    Location: Wimbledon
    Posts: 141
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Try createing 3 sub forms, one for room, one for subject, one for teacher. Set the datasource of each sub-form to the correct table.

    Create a 4th form which hosts all 3 sub forms. The next and prev commands will now work as each subform has a table behind it.

    It's not neat but since you don't want to learn ADO.....

    Mart
    Mart is offline   Reply With Quote
    Old 11-11-2003, 08:01 PM   #7 (permalink)
    dead pixel
     
    streetster's Avatar
     
    Join Date: Jul 2003
    Location: Petersfield
    Posts: 3,728
    Thanks: 44
    Thanked 57 Times in 44 Posts
    streetster's system
    kinda followed your advice, as i have no idea where to start with ADO - isnt that a bit ott for an a2 project? perhaps, i dont know.. but still, i've made 3 forms, and then made a 4th which has 3 subforms (well it will do eventually, got 1 so far), seems to be working so far tho

    mark

    scan.co.uk firefox plugin:


    msn
    | rating | web
    streetster is online now   Reply With Quote
    Old 11-11-2003, 09:07 PM   #8 (permalink)
    The stug
     
    Shad's Avatar
     
    Join Date: Jul 2003
    Location: In front
    Posts: 2,534
    Thanks: 9
    Thanked 11 Times in 9 Posts
    A2 Computing (I assume that's what your doing?) requires some form of programming to be used (certainly did when I did it). So making use of ADO (which is only a collection of objects after all) wouldn't be a bad idea...

    My name is Simon

    Shad is offline   Reply With Quote
    Old 11-11-2003, 09:09 PM   #9 (permalink)
    dead pixel
     
    streetster's Avatar
     
    Join Date: Jul 2003
    Location: Petersfield
    Posts: 3,728
    Thanks: 44
    Thanked 57 Times in 44 Posts
    streetster's system
    no i'm doing a2 philosophy.. yeh computing , hmm well i'll see if there are any books at college about it, but this is just a form, i have some harder parts which i'm sure you're more than capable of doing, which i will have to ask for peoples help with i think heh..

    mark

    scan.co.uk firefox plugin:


    msn
    | rating | web
    streetster is online now   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On
    Forum Jump



    All times are GMT. The time now is 11:56 PM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned. HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    Powered by vBulletin® Version 3.7.4
    Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.2.0
    © Copyright 2008 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.