Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Menu buttons!

cathycathy Posts: 67Member
Hi!
I need some help with a few menu buttons could someone please help me with code for the following menu buttons Im trying to make?!
Undo is
datCustomers.Recordset.Update
so whats Redo??
Also, Id love to know how to cut, copy & paste?
I need to know how to print the users form and how to make a help file!!!

I know this is asking a lot but if someone could please tell me where to find the code or tell me the code itd be great!!
Thanking everyone in advance,
Cathy.

PS: Most of the form is connected to a database called datCusomers!

Comments

  • hobbyhobby Posts: 84Member
    : Hi!
    : I need some help with a few menu buttons… could someone please help me with code for the following menu buttons I’m trying to make?!
    : Undo is
    : datCustomers.Recordset.Update
    : so what’s Redo??
    : Also, I’d love to know how to cut, copy & paste?
    : I need to know how to print the user’s form… and how to make a help file!!!
    :
    : I know this is asking a lot but if someone could please tell me where to find the code… or tell me the code… it’d be great!!
    : Thanking everyone in advance,
    : Cathy.
    :

    I'm not clear on the redo part, but the other stuff I can help with.

    To Cut, Copy text do this:
    Clipboard.setText sText
    To Paste:
    text1.Text = Clipboard.getText
    Just when you cut, then set the text to vbnullstring (i.e. cut from a textbox, is copying the text from it, then erasing what's in the textbox)

    To Cut, Copy data do this:
    Clipboard.setData oData
    To Paste:
    Object = Clipboard.setData
    This would be used for, like images and such.

    The help files are pretty simple. They are just Word documents and each topic is a separate page. You index them and set the titles and IDs with footnotes. Then you open the document in the Windows Help Workshop (it comes with VB). If you don't have it, check the 'net. Footnotes are :
    # - ID name used in Help Workshop
    $ - Title of help topic
    K - Indexed words used for searching
    Set the footnote tags at the beginning of the topic and save to RTF.

    : PS: Most of the form is connected to a database called datCusomers!
    :
    :

  • cathycathy Posts: 67Member
    Thanks for ur help
    the code I was told for "undo" is:
    datCustomers.Recordset.Update
    where datCustomers is the database the command is undoing!! eg undoing a changed record etc...
    so, based on that I was woundering if there is similar code for redo?
    Thanks for the cut/copy/paste code and the help with the help filr..... but is there a way to apply the cut/copy/paste code to a database?? Just woundering!
    Thank you!
    Cathy. :)

    : : Hi!
    : : I need some help with a few menu buttons… could someone please help me with code for the following menu buttons I’m trying to make?!
    : : Undo is
    : : datCustomers.Recordset.Update
    : : so what’s Redo??
    : : Also, I’d love to know how to cut, copy & paste?
    : : I need to know how to print the user’s form… and how to make a help file!!!
    : :
    : : I know this is asking a lot but if someone could please tell me where to find the code… or tell me the code… it’d be great!!
    : : Thanking everyone in advance,
    : : Cathy.
    : :
    :
    : I'm not clear on the redo part, but the other stuff I can help with.
    :
    : To Cut, Copy text do this:
    : Clipboard.setText sText
    : To Paste:
    : text1.Text = Clipboard.getText
    : Just when you cut, then set the text to vbnullstring (i.e. cut from a textbox, is copying the text from it, then erasing what's in the textbox)
    :
    : To Cut, Copy data do this:
    : Clipboard.setData oData
    : To Paste:
    : Object = Clipboard.setData
    : This would be used for, like images and such.
    :
    : The help files are pretty simple. They are just Word documents and each topic is a separate page. You index them and set the titles and IDs with footnotes. Then you open the document in the Windows Help Workshop (it comes with VB). If you don't have it, check the 'net. Footnotes are :
    : # - ID name used in Help Workshop
    : $ - Title of help topic
    : K - Indexed words used for searching
    : Set the footnote tags at the beginning of the topic and save to RTF.
    :
    : : PS: Most of the form is connected to a database called datCusomers!
    : :
    : :
    :
    :

  • hobbyhobby Posts: 84Member
    To Cut/Copy/Paste from and to a database, you'll probably have to use the Windows Clipboard as an inbetween. For that just load the database into the form (like how you are already doing) and update your records. If you have C/C/P programmed into the form you can load a field into a textbox (like fName) and use the Copy/Paste command on the textbox and then update the database.

    If you are using a flexgrid, then create a textbox that appears over a cell you click on and that has the contents of that cell in it's text property. Then you can edit the textbox and when finished, set the contents of the flexgrid cell to the new contents of the textbox.

    Hope that helps. If you need code, post a msg.

    : Thanks for ur help
    : the code I was told for "undo" is:
    : datCustomers.Recordset.Update
    : where datCustomers is the database the command is undoing!! eg undoing a changed record etc...
    : so, based on that I was woundering if there is similar code for redo?
    : Thanks for the cut/copy/paste code and the help with the help filr..... but is there a way to apply the cut/copy/paste code to a database?? Just woundering!
    : Thank you!
    : Cathy. :)
    :
    : : : Hi!
    : : : I need some help with a few menu buttons… could someone please help me with code for the following menu buttons I’m trying to make?!
    : : : Undo is
    : : : datCustomers.Recordset.Update
    : : : so what’s Redo??
    : : : Also, I’d love to know how to cut, copy & paste?
    : : : I need to know how to print the user’s form… and how to make a help file!!!
    : : :
    : : : I know this is asking a lot but if someone could please tell me where to find the code… or tell me the code… it’d be great!!
    : : : Thanking everyone in advance,
    : : : Cathy.
    : : :
    : :
    : : I'm not clear on the redo part, but the other stuff I can help with.
    : :
    : : To Cut, Copy text do this:
    : : Clipboard.setText sText
    : : To Paste:
    : : text1.Text = Clipboard.getText
    : : Just when you cut, then set the text to vbnullstring (i.e. cut from a textbox, is copying the text from it, then erasing what's in the textbox)
    : :
    : : To Cut, Copy data do this:
    : : Clipboard.setData oData
    : : To Paste:
    : : Object = Clipboard.setData
    : : This would be used for, like images and such.
    : :
    : : The help files are pretty simple. They are just Word documents and each topic is a separate page. You index them and set the titles and IDs with footnotes. Then you open the document in the Windows Help Workshop (it comes with VB). If you don't have it, check the 'net. Footnotes are :
    : : # - ID name used in Help Workshop
    : : $ - Title of help topic
    : : K - Indexed words used for searching
    : : Set the footnote tags at the beginning of the topic and save to RTF.
    : :
    : : : PS: Most of the form is connected to a database called datCusomers!
    : : :
    : : :
    : :
    : :
    :
    :

Sign In or Register to comment.